Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

NodeJS interface for controlling the datafruit pixel led strings

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 .gitignore initial commit
Octocat-spinner-32 Basically finished, but need node-spi to be finished and tested befor…
Octocat-spinner-32 adafruit_pixel.js Adding color fading
Octocat-spinner-32 package.json


NodeJS interface for controlling the atafruit pixel led strings

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


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();; // All off immediately (saves previous state)
lights.sync(); // Restores previous state
lights.clear(); // Sets every pixel in the pixel buffer to zero (hard off)
Something went wrong with that request. Please try again.