-
Notifications
You must be signed in to change notification settings - Fork 1
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
Implement GPIO Module #6
Comments
Controlling GPIO (on the RaspberryPi) via sysfs seems to be deprecated. Using memory mapping with There is also a newer interface to GPIO via Linux character device [1], which is recommende by the Raspberry Pi Foundation. This approach is also already implemented in the golang library gpiocdev . I tend to stick with the |
@sylv-io any thoughts on this? |
IMHO we should support |
What about that newer kernel interface via character device? Leave it out completely for now? |
Sure, we should support all possible GPIO interfaces. Either by adding a module that supports them all via module options, or by implementing a separate module for each interface. I think the former option fits the best. |
If I may add, sysfs GPIO is already marked as obsolete, and disabled by default. If you are looking for a future-proof solution, gpiocdev is likely the way to go. As for the sysfs interface, maybe you find some of these useful: https://github.com/3mdeb/RteCtrl/blob/master/pkg/gpioControl/gpioControl.go |
GPIO (Buttons and Switches at DUT), support for one the following interfaces: sysfs, /dev/gpiomem
The text was updated successfully, but these errors were encountered: