WiringPi / WiringPi-Node

Node.js bindings to wiringPi
334 stars 94 forks source link

Eventlistener #13

Closed kenci closed 9 years ago

kenci commented 9 years ago

Is there any Eventlistener available? If GPIOs state has changed trigger an action or something else, like this

nekuz0r commented 9 years ago

Yes, there is something like that, it's called interrupts. It'll be available in v2.0.0, see : https://github.com/nekuz0r/wiring-pi/blob/incoming-v2.x/DOCUMENTATION.md#interrupts

The v2.0.0 will be available this week, so if you can, be patient :)

jdesboeufs commented 9 years ago

@kenci I'm sketching a pure-JS wrapper around wiring-pi for a R&D project. Are you searching something like that?

@nekuz0r \o/ Interrupts will be more efficient than my current polling strategy!

LouTerrailloune commented 9 years ago

Waiting for this feature too.

nekuz0r commented 9 years ago

Today is the day :) v2.0.0 released !

kenci commented 9 years ago

Got it!