Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 1348

Python • RuntimeError: Failed to add edge detection after upgrade to Raspberry Pi 4

$
0
0
I have been running a program very successfully on a Raspberry Pi3 running bullseye and I have replaced the Pi3 with a Pi4 running bookworm. My program seems to run perfectly except what is probably the most important part in that it will not detect 2 flashing lights, one connected to GPIO 10 and the other to GPIO 14.
This is the relevant part of my program

Code:

GPIO.setmode(GPIO.BCM)GPIO.setup(10, GPIO.IN)GPIO.setup(14.GPIO.IN)GPIO.add_event_detect(10,GPIO.FALLING, calback=fallingpulseLED, bouncetime = 100)GPIO.add_event_detect(14,GPIO.FALLING, calback=fallingpulseLED, bouncetime = 100)
Has the use of event detecting changed that is causing this error.
Any help gratefully received

Statistics: Posted by RDS — Sun Jun 02, 2024 9:15 am



Viewing all articles
Browse latest Browse all 1348

Trending Articles