Complete the code to define the microcontroller type used in Arduino Uno.
#define MICROCONTROLLER [1]
The Arduino Uno uses the ATmega328P microcontroller as its main chip.
Complete the code to set the clock speed of Arduino Uno in Hertz.
const unsigned long CLOCK_SPEED = [1]; // in Hz
The Arduino Uno runs at 16 MHz, which is 16,000,000 Hz.
Fix the error in the code to correctly initialize the digital pin mode for an LED.
pinMode([1], OUTPUT);Pin 13 is the built-in LED pin on Arduino Uno and must be specified as a number.
Fill both blanks to create a dictionary mapping Arduino pins to their functions.
const char* pinFunctions[] = { [1], [2] };Pin 13 is used for LED, and A0 is an analog input pin.
Fill all three blanks to define a struct representing Arduino pin configuration.
struct PinConfig {
int pinNumber;
const char* [1];
bool [2];
};
PinConfig ledPin = {13, [3], true};The struct has a function name, a boolean for output mode, and the ledPin is pin 13 with function "LED" and output enabled.
