Controlling Multiple LEDs with Arduino – Post-Test | Lesson 6


Controlling pins one-by-one manually
Repeating the same action for each pin
Slowing down the loop

Turns the pin HIGH
Sets the pin to be used for output
Starts serial communication

The LEDs will still work
The sketch will crash
The pins might not behave as expected

Use the same loop again
Count backward in the second loop
Change delay values

basePin
numPins
j

Checks if j is even
Skips all LEDs
Adds a delay

Use Serial.println() statements
Only change delay times
Restart the Arduino every time

Change basePin to 7
Increase numPins to 6
Move pinMode() outside of setup()

Change loop to count down from high pin to low
Change pinMode to INPUT
Delete the first loop

Use a condition that only runs for even pin numbers
Set the delay to zero
Delete the for loop