-
Notifications
You must be signed in to change notification settings - Fork 39
Description
While I appreciate the ability to use the standad Linux GPIO interface fo reading buttons, it is a total pain that there is not also a /sys interface to get button state.
Currently, we require an ioctl to read the button state from user space, which is fine for scripting languages like Python that have an ioctl library. But it does not help that the only peripheral on the EV3 that requires ioctl calls is the buttons, and for languages like Lua or even bash and awk we need to write a Language binding for ioctl and add it to the binding package.
I can write a button class for /sys that works pretty much like the attribute system we have today, where querying the state simply returns a list of all the pressed buttons.
Comments? Any reason why this is a particularly bad idea?