ci-trafficlight-driver
v1.0.1
Published
A npm module to drive usb trafficlight
Readme
ci trafficlight driver
Install :
npm install ci-trafficlight-driverExample :
var CiTrafficlightDriver = require('ci-trafficlight-driver');
var driver = CiTrafficlightDriver.init(500); // set blink delay in ms, default to 1 sec
driver.setColor('green'); // available colors are green, orange and red
driver.setBlink(true); // true to start blinking, false to stop
driver.clean(); // shutdown all lights