You've come across the infamous Errata 9 bug; in short, built-in pull-downs don't work correctly on RP2350. To make it work, you can either provide your own pull-down resistor or change the program to use a pull-up instead, since they work as intended.
To do the latter, you'd have to connect the button between the GPIO and GND instead of 3V3, use the machine.Pin.PULL_UP when creating the button, and then check for button.value() == 0: inside the loop.
To do the latter, you'd have to connect the button between the GPIO and GND instead of 3V3, use the machine.Pin.PULL_UP when creating the button, and then check for button.value() == 0: inside the loop.
Statistics: Posted by horuable — Sat May 31, 2025 7:54 am