Skip to content


Switch branches/tags
This branch is 3 commits ahead, 31 commits behind adammhaile:master.

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Raspberry Pi library for LPD8806 based RGB light strips Initial code from:

See a demo video here:

Download, extract, then run the help:

>>> import LPD8806
>>> help(LPD8806)
  • The LPD8806 chip does not seem to really specify in what order the color channels are, so there is a helper function in case yours happen to be different. The most common seems to be GRB order but I have found some strips that use BRG order as well. If yours (like the one's from Adafruit) use GRB order nothing needs to be done as this is the default. But if the channels are swapped call the method setChannelOrder() with the proper ChannelOrder value. Those are the only two I've ever encountered, but if anyone ever encounters another, please let me know so I can add it.

  • All of the animations are designed to allow you to do other things on the same thread in between frames. So, everytime you want to actually progress the animation, call it's method and then call update() to push the data to the the strip. You could do any other processing on the buffer before pushing the update if needed. Each animation has a step variable that can be manually reset or modified externally. See variables in the init of LEDStrip

  • If any of the built in animations are not enough you can use any of the set or fill methods to manually manipulate the strip data.

  • These strips can get extremely bright (the above video was filmed using 50% brightness) so you can use setMasterBrightness() to set a global level which all output values are multiplied by. This way you don't have to manually modify all of the RGB values to adjust the levels. However, Color takes an optional brightness value so that it can be set on an individual level. Last, if using HSV, you can just set it's "Value" component to adjust the brightness level.

  • ColorHSV is there for easily fading through a natural color progression. However, all methods take a Color object, so call ColorHSV.getColorRGB() before passing to any of the set, fill, or animation methods.

  • You need the spi_bcm2708 and spidev kernel modules loaded to generate the SPI device this is expecting.


LPD8806 python library for the raspberry pi






No releases published


No packages published


  • Python 100.0%