AR-123BeginnerPremium
Arduino Aircraft Lights: Multitasking with millis (7 LEDs + 2 Buttons)
The lights of a plane in the night sky, on your desk! The red nav light on the left wing and the green one on the right stay on, the white wingtip strobes double flash, the tail strobe keeps its own rhythm and the red beacon breathes softly. The landing gear button turns on the landing light. All at once with millis(); the mode button runs the same pattern with delay() and shows, to the millisecond, why the button is heard late.
0.0(0)

The lights of a plane in the night sky, right on your desk: red and green lights glow steadily on the wings, white strobes double flash and the red light on the body slowly breathes in and out. One button lowers the landing gear and switches on the landing light. The other runs the same pattern the way beginners write it, and you see with your own eyes how the button is heard a whole second late.
Source Code
Premium Content
The source code, block version and FAQ of this project are open to Premium members.
- All Project Code
- Block version
- Frequently Asked Questions
