Complete the code to define the setup function in an Arduino sketch.
void [1]() {
// put your setup code here, to run once:
}The setup() function runs once when the Arduino starts. It is used to initialize settings.
Complete the code to define the loop function in an Arduino sketch.
void [1]() {
// put your main code here, to run repeatedly:
}The loop() function runs over and over again after setup() finishes. It is where the main code runs repeatedly.
Fix the error in the Arduino sketch by completing the missing keyword.
[1] setup() { pinMode(13, OUTPUT); }
The setup() function must be declared with the void keyword to indicate it returns nothing.
Fill both blanks to create a simple Arduino sketch that turns on the built-in LED.
void [1]() { pinMode(13, [2]); } void loop() { digitalWrite(13, HIGH); }
The setup() function runs once to set pin 13 as an OUTPUT. Then loop() turns the LED on.
Fill all three blanks to complete the Arduino sketch that blinks the built-in LED.
void [1]() { pinMode(13, [2]); } void loop() { digitalWrite(13, HIGH); delay([3]); digitalWrite(13, LOW); delay(1000); }
The setup() function sets pin 13 as OUTPUT. The loop() turns the LED on, waits 1000 milliseconds, then turns it off.
