dmtaub / APA102_Pi

Using the APA102 LED strips on a Raspberry Pi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

APA102_Pi

Pure Python library to drive APA102 LED stripes; Use with Raspberry Pi.

Prerequisite: spidev v3. I used the one from here: https://github.com/doceme/py-spidev

The LED stripe is attached to the Raspberry Pi like this:

  • Gnd to a Gnd pin, e.g. the one right next to the SPI pins
  • Data to SPI MOSI
  • Clock to SPI SCLK
  • Do not connect the LED stripe power to the Raspberry Pi: You will kill it right away.

Instead, use a separate 5V power supply to power the stripe. All of the grounds must be shared.

About

Using the APA102 LED strips on a Raspberry Pi

License:GNU General Public License v2.0


Languages

Language:Python 94.3%Language:Shell 5.7%