pixels-apa102 given ndpixels, return buffer to send over spi to apa102 leds install with npm: npm install --save pixels-apa102 usage pixelsToApa102Buffer = require('pixels-apa102') apa102Buffer = pixelsToApa102Buffer(pixels)