ledstripe

0.0.2 • Public • Published

ledstripe

Node.js code for controllig WS2801 and LPD8806 LED stripes via SPI.

Background Information

Can't access your SPI device?

  • Check if your kernel has SPI support at all.
  • Make sure your SPI kernel module is loaded. On the Raspberry Pi add a line
spi-bcm2708

to /etc/modules to load it permanently on boot. If you dont want to load the module on every time you boot the system, load it temporarily with sudo modprobe spi-bcm2708.

  • Make your SPI device accessible for the user running the node script. If you want the user pi to be able to use the device, setup groups and permissions:
sudo groupadd -f --system spi
sudo adduser pi spi

and create (or edit) an udev rule. The file /etc/udev/rules.d/90-spi.rules should contain the line

SUBSYSTEM=="spidev", GROUP="spi"

Reboot for the changes to take effect.

endorse

Readme

Keywords

none

Package Sidebar

Install

npm i ledstripe

Weekly Downloads

4

Version

0.0.2

License

MIT

Last publish

Collaborators

  • bigalex