Task 4: Upload, Test, and Experiment
Experiment with Timing and Logic
Now that your code includes the blinking yellow LED using a for loop, upload your sketch to the Arduino and observe the light sequence.
Try experimenting with different values in the delay() function or changing how many times the yellow light blinks.
Can you make the red and green leds blink?
Troubleshooting Checklist
- Check your wiring and component orientation
- Ensure pin numbers in the code match physical connections
- Look for typos or missing semicolons
- Use comments to isolate sections of code
- Observe the Serial Monitor for output clues