sbcshop / Rotary_HAT_for_RaspberryPi_Software

This GitHub page offers a interfacing details and getting started guide of Rotary Encoder HAT for Raspberry Pi.
MIT License
3 stars 0 forks source link

RuntimeError: Failed to add edge detection #1

Open Cronos512 opened 4 months ago

Cronos512 commented 4 months ago

When running example with touch functions, I get the following error :

Rotary_HAT_for_RaspberryPi_Software/example $ python face.py Traceback (most recent call last): File "/home/thierry/Rotary_HAT_for_RaspberryPi_Software/example/face.py", line 25, in touch.int_irq(Callback) File "/home/thierry/Rotary_HAT_for_RaspberryPi_Software/example/../lib/Round_Touch.py", line 46, in int_irq self.GPIO.add_event_detect(self.TP_INT,self.GPIO.FALLING,Int_Callback,5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: Failed to add edge detection

SPI & I2C is enabled.

EricRobillard commented 2 months ago

Install lgpio: sudo apt-get -y install python3-rpi.lgpio. It's run on RPI 4b