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

Python • adafruit-circuitpython breaks lgpio on Raspberry pi

$
0
0
Hello
I have been using the replacement Rpi.GPIO library lgpio on a pi zero 2w, but eventually I will be switching to a Pi 5. I belive lgpio is installed by default on Bookwormm. I am trying to also use an ads1015 AD module, however installing the adafruit-circuitpython library breaks lgpio. As soon as I install the circuitpython library my python program gives me

Code:

GPIO.add_event_detect(self.gpio, GPIO.BOTH)RuntimeError: Failed to add edge detection
I'm not sure how to resolve this. I have spent hours searching for a solution but I think circuitpython is installing the old gpio, it is a bit beyond me. Can anyone help?

Statistics: Posted by jimseng — Mon Nov 11, 2024 7:22 pm



Viewing all articles
Browse latest Browse all 1261

Trending Articles