npm.io
0.0.1 • Published 12 years ago

usb-webmail-notifier

Licence
MIT
Version
0.0.1
Deps
1
Vulns
0
Weekly
0
Stars
3

usb-webmail-notifier

Node.js Controller for the USB "Webmail Notifier" that can light up with 7 different colours.

Green Gallery of colours

Cycle the colours:

var notifier = require('usb-webmail-notifier');
notifier.cycle();

Set a color:

notifier.color('GREEN');

Play a sequence:

// sequence, delay, loop, startIndex
notifier.play(['RED','OFF','GREEN','OFF'],100,true,1);

Flash:

// colour, delay, times
notifier.flash('RED',1000,20);

Switch off:

	notifier.off();
	// or
	notifier.color('OFF');

Keywords