Font size
WorksheetsIntro-Arduino
Total questions: 5
Worksheet time: 3mins
Which function in Arduino programs is used to initialize variables and settings before the main loop starts?
void loop()
void begin()
void init()
void setup()
Which of the following steps are needed to print a message to the serial monitor in an Arduino program?
Use Serial.println() to print the message.
Initialize serial communication with Serial.begin()
Ensure the baud rate matches between the program and serial monitor
What role does the void loop() function play in an Arduino program?
How do you configure pin 13 as an output in an Arduino sketch?
How can you turn off the built in LED in 500 ms using digitalWrite?
digitalWrite(13, LOW);
delay(1000);
digitalWrite(13, LOW);
delay(250);
digitalWrite(13, LOW);
delay(500);
digitalWrite(13, HIGH);
delay(500);
