PI-100IntermediatePremium
Pico Multitasking with Three Timers: LED, Metronome and Clock at Once (machine.Timer + OLED)
Three machine.Timers run three jobs at once: the red LED blinks every 250 ms, a metronome beeps 100 times a minute and lights the green LED, and the yellow LED counts the seconds. The main loop deliberately sleeps 400 ms on every pass, yet the rhythms never slip; the OLED shows how many times each timer has run. You learn real multitasking, which delay cannot do, and the keep-the-ISR-short rule.
0.0(0)

Blinking lights, a ticking metronome and a running clock: all on one small board, none of them ever waiting for the others. Even though the main program sleeps for almost half a second on every pass, none of the rhythms slip, and the display shows how many times each job has been done. This is where you see how a board does several things at once.
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
