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

sysfs deprecated #21

Closed
sgjava opened this issue Jan 1, 2018 · 3 comments
Closed

sysfs deprecated #21

sgjava opened this issue Jan 1, 2018 · 3 comments

Comments

@sgjava
Copy link
Collaborator

sgjava commented Jan 1, 2018

See my post on Armbian forum https://forum.armbian.com/topic/6069-rpigpio-replacement-for-orange-pi-zero-and-nano-pi-duo and the reply. Also see https://forum.armbian.com/topic/5655-armbianio-api-proposal and https://www.cnx-software.com/2017/11/03/learn-more-about-linuxs-new-gpio-user-space-subsystem-libgpiod

Any plans to wrap libgpiod?

@rm-hull
Copy link
Owner

rm-hull commented Jan 8, 2018

No immediate plans; I suspect it will be quite some time before sysfs becomes deprecated.

Would be good to do some analysis to see how much effort is needed to support libgpiod though.

@sgjava
Copy link
Collaborator Author

sgjava commented Jan 8, 2018

It was supposed to be deprecated as part of kernel 4.8 I think, but yes it's still there :) I wrote the Python wrappers for https://github.com/bitbank2/ArmbianIO (fast C based I2C, SPI and GPIO lib for all Armbian SBCs) and I believe Larry is going to port that to libgpiod at some point. I may end up doing a RPi.GPIO type wrapper, so it will have a wide range of SBCs supported instead of all the one off RPi.GPIO clones. It will make it easier to run Luma and other libs that use RPi.GPIO API.

@sgjava sgjava closed this as completed Jan 8, 2018
@sgjava
Copy link
Collaborator Author

sgjava commented Jan 24, 2018

I have libgpiod building on Armbian and should work on any mainline version https://github.com/sgjava/libgpiod-extra. libgpiod should perform better and has more reliable edge detection.

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

2 participants