Wrong interrupt on GPIO
A Python module to control the GPIO on a Raspberry Pi
Brought to you by:
croston
Hello, i tried to find answer for my problem but couldnt. I have function that i want to trigger when GPIO is LOW. I put pullup on GPIO4 and connect gnd when I want trigger function. The problem is that i setup event on FALLING , but function triggers as I put BOTH, so it executes when GPIO is LOW and HIGH
GPIO.add_event_detect(4,GPIO.FALLING,callback=upisUBazu,bouncetime=300)
Im using RPi 4, GPIO vesion 0.7.1a3.
Also tried ver 0.7
Thanks
I forgot to post my gpio config:
GPIO.setup(4,GPIO.IN, pull_up_down=GPIO.PUD_UP)
any ideas?