Support for GPIO monitoring callbacks
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.
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, ;-)
I would be truly interested in that as well. Did you make any progress?
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!
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.