Thanks to visit codestin.com
Credit goes to github.com

Skip to content

santex/ledstripe

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Node JS code for LED stripes

Resources

Stars

Watchers

Forks

Packages

No packages published