sombriks / node-libgpiod

libgpiod node bindings
MIT License
28 stars 8 forks source link

Support for GPIO monitoring callbacks #23

Open varadero opened 6 months ago

varadero commented 6 months ago

I know that GPIO monitoring callbacks is in the roadmap but it would be really great addition. I have tried node-libgpiod with Raspberry Pi 5 4GB (I just needed to change new Chip(0) to new Chip(4)) and it works great for setting the outputs but don't know how to do the "monitoring" (like detecting push buttons connected to some GPIO). I am willing to sponsor the addition of the callbacks to the library.

sombriks commented 6 months ago

Hi @varadero i am doing some cleanup and after that will work on that for 1.x branch first. At some point we can discuss proper api design/ergonomics here, ;-)

Garfonso commented 3 months ago

I would be truly interested in that as well. Did you make any progress?

sombriks commented 2 months ago

Hello @Garfonso indeed this feature is one will be a big improvement, i just need testcases / gpiosim up and running so i can handle the missing bits of 1.x API. staty tuned!