Improve GPIO support in Fedora in general and particularly on the Raspberry Pi.
The Raspberry Pi has a well recognised python library RPi.GPIO [1][2] that is used in a lot of projects on the Raspberry Pi, unfortunately it depends on old deprecated kernel interfaces and hasn't been updated to the new way to drive GPIO that has been default since 4.8. The supported way to access GPIO on linux is now via a new /dev/gpiochipX interface using libgpiod [3]. Unfortunately libgpiod doesn't have python bindings.
The project would be to add python bindings to libgpiod and the add support to RPi.GPIO to optionally use, if it's available, libgpiod but also continue to work with the old interface in use on Raspbian and other distributions.
This would overall improve GPIO support in Fedora, and upstream in the community in general, on all devices that support GPIO but in particular on the Raspberry Pi. It would allow the use of a lot of educational [4] content around Python and GPIO on the Raspberry Pi to be used without large modifications to the conntent to be usable on Fedora.
A stretch goal for this would be to also add NodeJS bindings to libgpiod which would also allow the use of tools like Node-RED [5] to control GPIO on ARM devices using the new method.
[1] https://sourceforge.net/p/raspberry-gpio-python/wiki/Home/ [2] https://pypi.python.org/pypi/RPi.GPIO [3] https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/tree/README [4] https://makezine.com/projects/tutorial-raspberry-pi-gpio-pins-and-python/ [5] http://nodered.org/
this has been posted. If you need to make corrections please use a PR or contact me.
Thanks,
bex
Metadata Update from @bex: - Issue status updated to: Closed (was: Open)