Scott Penrose is a perl hacker with an interest in home automation. He has been playing with electronics since he was old enough to burn his fingers with a soldering iron.
Johnny Five Events
Most of the objects emit events. A pin can be used like this:
Yes this is an output but you still get the events fired. Sometimes...
This means you have to be clever programmatically for calling the high/low method from a value, e.g. out1[ value ? 'high' : 'low'](); So be very careful.