Rpi. GPIO has been updated and is current and I've run the pintest script to test all pins are OK.
Is there anything I'm missing that could cause Rpi. GPIO to miss a high input pin that wiringpi is detecting?
My code is:
import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setup(13, GPIO.IN) try: while True: if GPIO.input(13): Print("button pressed")
Edit: I should have mentioned that I've already tried the pull up/downs, and even tried using physical resistors - still the same result (Without the resistors, I can see from wiringpi that the input is floating.)
I'm not at home to send a photo of the wiring - here's a sketch of the setup. However, I don't believe the physical setup is the issue since wiringpi is picking up the input without issue - it's just Python GPIO that's not behaving.