Issue reading GPIO input

May 21, 2024, 12:23

pgthevrguy

so buttons 2 and 3 are working just fine, but when reading GPIO 17 its constantly reading a value as if the button is pressed, but when pressing the button this state doesnt change. Additionally, when I plug the switch im using to change 17 into a different button, the switch works just fine. So the switch is fine, and the code works fine for other pins. I have the switch connected where its just GND and GPIO 17, similar to how all the other pins are plugged in.

pgthevrguy

so when running raw GPIO.input(17), there is no input.

pgthevrguy

nvm found out that for pins that arent 2 and 3, you dont want ground you want 3.3v