Raspberry Pi Pico practice problem · Raspberry Pi Pico
Buzzer switch
MediumBudget $5MicroPython
A passive buzzer (with a series resistor) is on GP13, a button on GP12. Each debounced press toggles a 1000 Hz tone at half duty: silence → tone → silence.
Keep the PWM running with duty 0 while silent.