1.0.1 • Published 8 years ago

ci-trafficlight-driver v1.0.1

Weekly downloads
2
License
GPL-3.0
Repository
github
Last release
8 years ago

ci trafficlight driver

Build Status

Install :

npm install ci-trafficlight-driver

Example :

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