Color Strip
Node.js interface to control the adafruit RGB LED strip.
Installation
-
Install node.js on your rasberry pi (I recommend using nvm)
-
Install this package:
npm install color-strip
-
Enable spi manually or using raspi-config (the option to enable spi is under "Advanced Options").
Useage
var ColorStrip = ;var strip = device: '/dev/spidev0.0' numberLEDs: 32; // set led 0 to white, led 1 to red, led 2 to green, and led 3 to bluestripstripstripstrip // flush the colors to the stripstrip // or use the hex interfacestripstrip