Is your feature request related to a problem?
Yes
Description
Right now it is not possible to use GPIO buttons with newer kernels as the sysfs support was dropped where the onoff nodejs library was relying on.
Describe the solution you'd like
I'm currently working on a work in progress library which uses libgpiod to interface with GPIOs.
https://github.com/szwenni/libgpiod-node-wrapper
This issue should be used more or less as a discussion ticket.
The only point where I saw the usage of the GPIOs was here: https://github.com/PhotoboothProject/photobooth/blob/dev/assets/js/remotebuzzer-server.js
I'm aiming to provide a drop in replacement for onoff later on. For now I'm trying to find use cases what I additionally can test.
Currently I'm supporting reading, writing, watching, debouncing, info for lines, info for chips, listing chips and its labels and checking accessibility to the chips.
The problem is that I currently only have a RPI5 with kernel 6.6 to hand. I would like to get a few more tests before creating a pull request and publishing to npm.
Describe alternatives you've considered
I checked onoff, I think this is not developed anymore since a few years.
I checked libgpiod-node, but this only supports an old version of libgpiod (<2.x), the newer version which is in dev has no watch support up to this time.
Additional context
No response
Is your feature request related to a problem?
Yes
Description
Right now it is not possible to use GPIO buttons with newer kernels as the sysfs support was dropped where the onoff nodejs library was relying on.
Describe the solution you'd like
I'm currently working on a work in progress library which uses libgpiod to interface with GPIOs.
https://github.com/szwenni/libgpiod-node-wrapper
This issue should be used more or less as a discussion ticket.
The only point where I saw the usage of the GPIOs was here: https://github.com/PhotoboothProject/photobooth/blob/dev/assets/js/remotebuzzer-server.js
I'm aiming to provide a drop in replacement for onoff later on. For now I'm trying to find use cases what I additionally can test.
Currently I'm supporting reading, writing, watching, debouncing, info for lines, info for chips, listing chips and its labels and checking accessibility to the chips.
The problem is that I currently only have a RPI5 with kernel 6.6 to hand. I would like to get a few more tests before creating a pull request and publishing to npm.
Describe alternatives you've considered
I checked onoff, I think this is not developed anymore since a few years.
I checked libgpiod-node, but this only supports an old version of libgpiod (<2.x), the newer version which is in dev has no watch support up to this time.
Additional context
No response