Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration Management problems with the use of rpi-gpio "hack"; just use lgpio native instead? #910

Open
frank-pet opened this issue Nov 13, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@frank-pet
Copy link

frank-pet commented Nov 13, 2024

Board Name

Raspberry PI 5

Steps

A pip update of Adafruit_blinka from a version earlier than 0.8.28(?) to any later version does not work. This is due to the fact that the rpi-gpio replacement for RPi.GPIO is only installed from the ./adafruit/Raspberry-Pi-Installer-Scripts/master/raspi-blinka.py installer. It took quite a while to track this down.

Description

I'd like to propose an alternate solution. Since the /dev/gpiochip* files and lgpio python package are now part of the Debian kernel 1:6.1.63-rpi7-rpi-v8, simply implement the ./microcontroller/bcm283x/pin.py and ./microcontroller/bcm283x/pwmio/PWMOut.py using lgpio directly, and remove the RPi.GPIO code (3 lines) from the ./microcontroller/bcm2711/pin.py package. An updated version is available in pull request 911 and has been tested successfully on a PI5 on this kernel and a PI3B as well, using the pin package directly and also using digitalio.DigitalInOut with no changes to the digitalio package. Also successfully tested the blinka pwmio.PWMOut package. on both platforms.

Additional information

Code changes in pull request 911

@frank-pet frank-pet added the bug Something isn't working label Nov 13, 2024
@frank-pet frank-pet reopened this Nov 13, 2024
@frank-pet
Copy link
Author

closed accidentally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant