Raspberry Pi Pico practice problem · Raspberry Pi Pico
Alarm panel
HardBudget $5MicroPython
Two buttons and one LED:
- GP12 (arm) turns the panel on and off; the LED is on GP16 and is steady on when armed.
- GP13 (trigger), while armed, starts the alarm: the LED flashes every 250 ms.
- Pressing arm again disarms: the LED goes off.
Initial state: disarmed. Debounce both buttons.