Raspberry Pi Pico practice problem · Raspberry Pi Pico
Press counter
MediumBudget $3MicroPython
Each press of the button on GP12 adds one and prints the running total:
presses 1
presses 2
presses 3
Debounce: wait 20 ms after a press and read again before counting it, so one press prints once.