Raspberry-GPIO-Manager icon indicating copy to clipboard operation
Raspberry-GPIO-Manager copied to clipboard

Pin state change event

Open umasgn opened this issue 9 years ago • 2 comments

monitor multiple pins on their state change high or low.

umasgn avatar May 12 '15 07:05 umasgn

Is this is a feature request? I see that state change is listed in the "Coming Soon" section of the Readme.

I too am interested in this feature. I'm not clear about implementation strategy, but if @AlexSartori can flesh out the design here, I would be willing to have a go at coding it.

Here's another GPIO project in python that has this feature: https://github.com/projectweekend/Pi-Pin-Manager#single-pin-watcher

rykerwilliams avatar May 13 '15 15:05 rykerwilliams

Hi, thanks for the interest in my project. I was implementing it in a second branch ('statechange-events_beta'). You can take a lookat that, but I have not tested it, so I don't know if it works... Anyway, it simply uses a FileSystemWatcher object to monitor the changes of the file where the value of the pin is written by the OS, and it triggers events. @umasgn @rykerwilliams

AlexSartori avatar May 14 '15 06:05 AlexSartori