hybridgroup / cylon-gpio

Cylon drivers for GPIO devices
http://cylonjs.com
Other
19 stars 14 forks source link

Digital Input #57

Open facetime88 opened 7 years ago

facetime88 commented 7 years ago

I am new with arduino stuff and Cylon, so sorry if this question sounds silly.

I have attach a laser receiver sensor to my arduino board and I'd to read its state change with Cylon. I try to look up on the available GPIO drivers and end up trying 'button'. The event I know is 'on push' which seems will be triggered only when it state change from 0 to 1. But I need also the opposite, which is from 1 to 0.

How do I get the event? Thank you.

deadprogram commented 7 years ago

Hi @facetime88 the event you are looking for is "release".

Hope that helps!