开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Raspberry Pi 5 libGPIOD questions


 

These changes to the Python? GPIO library functions have me stumped.? I keep looking for documentation, but I haven't found the correct place.
?
I am trying to read and input pin.? I'm interested in edge detection, and possibly debounced input.? I was previously able to do something like this:
GPIO.add_event_detect(door_switch, GPIO.FALLING,? bouncetime = 500)
?
Using GPIOD I can read the input, but it isn't elegant to build loops to check if there was a bounced input.
?
If someone could point me toward better documentation it would be greatly appreciated.
?
Arnold
KQ6DI


 

开云体育


I would recommend to post your question at

--David
KI6ZHD


On 05/14/2024 11:37 AM, Arnold Harding - KQ6DI wrote:

These changes to the Python? GPIO library functions have me stumped.? I keep looking for documentation, but I haven't found the correct place.
?
I am trying to read and input pin.? I'm interested in edge detection, and possibly debounced input.? I was previously able to do something like this:
GPIO.add_event_detect(door_switch, GPIO.FALLING,? bouncetime = 500)
?
Using GPIOD I can read the input, but it isn't elegant to build loops to check if there was a bounced input.
?
If someone could point me toward better documentation it would be greatly appreciated.
?
Arnold
KQ6DI


 

You need to back the kernel down to 6.1.74. After that they dropped the old GPIO libraries in the kernel
sudo rpi-update d86b5843d68b9972a5430a6d3da1b271cfc83521

Get