-
Notifications
You must be signed in to change notification settings - Fork 328
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
migrate GPIO usage to libgpiod Python bindings #43
Comments
that would be awesome - its definitely something we'd like to do (and libgpiod is a lil faster too) |
Hey @pdp7 - do you have any input on packaging / availability of libgpiod? I'm kind of in over my head on this, but it seems like anything we do with Blinka is going to require that it be trivially available on a standard Raspbian install, at minimum. It looks like there'll eventually be a Debian package, but that presumably won't trickle through to Raspbian for quite a while. Have thought about:
Practically speaking, it'd probably be optimal until it's available in more distros if there were just a libgpiod package on PyPI that provided library and bindings... Any thoughts? |
done here #59 |
is in generic_linux |
Hey, I've been working on a drop-in replacement for RPi.GPIO that uses libgpiod's python bindings as the underlying GPIO access mechanism instead of /dev/mem or the sysfs interface. I see that this issue was closed long ago but I figured I'd mention this library's existence in case anyone here finds it useful. Pending my latest pull request the library is feature complete if not very close to it, i.e. it completely re-implements the RPi.GPIO API as of RPi.GPIO version 0.7.0 Here is the repo: https://github.com/underground-software/python3-libgpiod-rpi |
RPi.GPIO and Adafruit_BBIO both use the legacy /sys interface for the Linux kernel GPIO subsystem.
libgpiod is a userspace library by @brgl that use the new character device based interface for Linux kernel GPIO subsystem.
The sysfs interface for GPIO is marked as deprecated in the Linux kernel, so I believe this Blinka library should migrate to the libgpiod Python bindings.
View Adafruit_BBIO issue #157 for more information on the character device interface in the Linux kernel.
cc @brennen
The text was updated successfully, but these errors were encountered: