Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


GPIO management change with the new Rapsberry Pi5
#3
The compatibility shim is installed
Code:
pi@moode9:~ $ dpkg -l | grep lgpio
ii  liblgpio1:arm64                      0.2.2-1~rpt1                           arm64        Control GPIO pins via gpiochip devices - shared libraries
ii  python3-lgpio                        0.2.2-1~rpt1                           arm64        Control GPIO pins via gpiochip devices - python3 bindings
ii  python3-rpi-lgpio                    0.6-0~rpt1                             all          Compatibility shim for lgpio emulating the RPi.GPIO API

Script does "import RPi.GPIO as GPIO" and seems to run ok
Code:
pi@moode9:~ $ sudo /var/www/daemon/gpio_buttons.py
bounce=1000ms
btn1, enabled n, gpio 02, pull-up, cmd=
btn2, enabled n, gpio 02, pull-up, cmd=
btn3, enabled n, gpio 02, pull-up, cmd=
btn4, enabled n, gpio 02, pull-up, cmd=
btn5, enabled n, gpio 02, pull-up, cmd=
btn6, enabled n, gpio 02, pull-up, cmd=
btn7, enabled n, gpio 02, pull-up, cmd=
btn8, enabled n, gpio 02, pull-up, cmd=
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
RE: GPIO management change with the new Rapsberry Pi5 - by Tim Curtis - 10-20-2024, 12:04 PM

Forum Jump: