Skip to content

Asynchronous Node.js library that implements the LPD8806 protocol that focuses on effects.

License

Notifications You must be signed in to change notification settings

qwertypants/lpd8806-asyncfx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lpd8806-asyncfx

This is a wrapper library for lpd8806-async. The intention of this is to act as an animation/led sequence library.

It is based heavily off of a library written by v0od0oChild

Install

npm install lpd8806-asyncfx

Example

// It takes one parameter, the number of leds on the strip.
// In this example, it's 32 leds.
var leds = require('lpd8806-asycnfx')(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);
});

TODO: Add more animation sequences!

About

Asynchronous Node.js library that implements the LPD8806 protocol that focuses on effects.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published