Skip to content

russtheaerialist-retired-projects/node-adafruit-pixel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

node-adafruit-pixel

NodeJS interface for controlling the atafruit pixel led strings

Depends on the node-spi module which isn't complete yet

usage

var Pixel = require('adafruit_pixel').Pixel;

var lights = Pixel('/dev/spidev1.1', 25);
lights.all(0xff, 0, 0);
lights.sync(); // Updates strand with current buffer
lights.set(1, 0xff, 0xff, 0);
lights.set(2, 0xff, 0xff, 0xff);
lights.sync();
lights.off(); // All off immediately (saves previous state)
lights.sync(); // Restores previous state
lights.clear(); // Sets every pixel in the pixel buffer to zero (hard off)
lights.sync();

About

NodeJS interface for controlling the datafruit pixel led strings

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published