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

Troubleshooting • Re: RPi.GPIO Failed to add edge detection on Pi3 New OS

$
0
0
On a Pi3 running Bookworm 64-bit with Desktop 6.6.31+rpt-rpi-v8, no runtime error occurs for me using RPi.GPIO, using GPIO 21 and

Code:

GPIO.setup(BtnPin, GPIO.IN, pull_up_down=GPIO.PUD_UP)
That code works fine, but is not edge detection of course. Am I missing something?
I am running in a python venv of course.

Statistics: Posted by neilgl — Sun Aug 11, 2024 9:51 pm



Viewing all articles
Browse latest Browse all 4999

Trending Articles