node-libgpiod icon indicating copy to clipboard operation
node-libgpiod copied to clipboard

Support for GPIO monitoring callbacks

Open varadero opened this issue 1 year ago • 11 comments

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.

varadero avatar Feb 25 '24 10:02 varadero

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, ;-)

sombriks avatar Feb 25 '24 15:02 sombriks

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

Garfonso avatar May 27 '24 08:05 Garfonso

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!

sombriks avatar Jun 01 '24 11:06 sombriks

Given that javascript was designed as an event-driven language, I would rank this with high priority. It seems you have much on your plate with this project, so patience is definitely worth the reward here.

2bndy5 avatar Oct 29 '24 11:10 2bndy5