Scott is an expert software developer with over 30 years experience, specialising in education, automation and remote data.
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.