UNPKG

lpd8806-asyncfx

Version:

Non-blocking LPD8806 NodeJS general library with animation effects.

11 lines (8 loc) 245 B
var leds = require('lpd8806-asyncfx')(32); leds.rainbow(1, 25); // After nodejs shuts down (ctrl+c), this runs so it can turn off the LED's process.on('SIGINT', function() { leds.off(); // Trigger exit process process.exit(0); });