Node Raspberry Pi library to drive APA102 RGB led over SPI
npm install apa102-spi
var Apa102spi =// Apa102spi(number of leds, clock divider)var LedDriver = 9 100// setLedColor(n, brightness 0-31, red 0-255, green 0-255, blue 0-255)LedDriver// send data to led stringLedDriver
clock divider argument is an even divisor of the base 250MHz rate ranging between 0 and 65536.
This library must be run as root