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

OPi.GPIO and libgpiod instead /sysfs #91

Open
sp2ong opened this issue Jun 7, 2024 · 0 comments
Open

OPi.GPIO and libgpiod instead /sysfs #91

sp2ong opened this issue Jun 7, 2024 · 0 comments

Comments

@sp2ong
Copy link

sp2ong commented Jun 7, 2024

OPi.GPIO is a very good support for writing python applications to interact with GPIO on SBC based on H3/H5 etc. Currently, the latest OS distributions based on Debian 12 and higher using kernel 6.x do not have access to GPIO via /sysfs, only via libgpiod. Does OPi.GPIO support interaction with GPIO via libgpiod?

I found info https://linux-sunxi.org/GPIO
Accessing the GPIO pins through character device with mainline kernel
The sysfs GPIO interface is now deprecated in favor of character devices /dev/gpiochipX

I found a project called RPI.GPIO2

https://github.com/underground-software/RPi.GPIO2/tree/master?tab=readme-ov-file

which allows you to maintain the communication syntax with GPIO but by using libgpiod.
Maybe it would be possible to make OPi.GPIO2 versions in a similar way, so that we could still use our python scripts on 6.x series krenels and use the settings and communication with GPIO via libgpiod?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant