adafruit / adafruit/Adafruit_CircuitPython_RGB_Display

Migrate from RPI.GPIO to gpiod?

Open
#127 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
143
Forks
53
PR merge metrics
No merged PRs in 30d

Description

RPi.GPIO /sys interface was removed from the Raspberry Pi Linux kernel. python3-lgpio is a compatibility package that allows us to continue to use RPi.GPIO, however, its days are numbered as we should be moving to the new kernel/character devices to access GPIO pins, which is python3-gpiod. The lgpio shim layer introduces its own problems.

Possible to migrate from RPi.GPIO to gpiod ?

adafruit_blinka/microcontroller/bcm283x/pin.py for example...

thanks!
-craig

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with adafruit_blinka/microcontroller/bcm283x/pin.py, the example named in the issue, and trace how the RGB display drivers reach GPIO access. Compare the current RPi.GPIO path with the python3-gpiod character-device approach; done means the GPIO access path is migrated without relying on the lgpio shim.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, raspberry-pi
Domain
embedded-iot
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.