Skip to content

Arduino library for LED strips and pixels using LPD8806. This is a bit of a hack for speeding up the refresh rate without using SPI.

Notifications You must be signed in to change notification settings

cloudwalking/LPD8806Fast

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A faster Arduino library for LPD8806

This is a bit of a hack for speeding up LPD8806 LED strip without using SPI. The code was originally written by Michael Noland, "Speeding up LPD8806 show() without hardware SPI" http://michaelnoland.com/speeding-up-lpd8806-show-without-hardware-spi/

To use, replace strip.show() with strip.showCompileTime<ClockPin, DataPin>(ClockPort, DataPort). ClockPin/DataPin are NOT the Arduino board pin numbers, they're the actual pin offset within the port. You can find these numbers with some Googling (eg "Arduino Leonardo pin mapping"). ClockPort and DataPort are the data registers that contain the pins; on my Flora these are both PORTD.

For my Flora with LEDs on data pin 6 and clock pin 12, this is how I show my LEDs: strip.showCompileTime<6, 7>(PORTD, PORTD)

Arduino library for LPD8806

This Library was written for the LPD8806 PWM LED driver chips, strips and pixels. But the LPD8803/LPD8809 will probably work too.

Where to Buy?

Pick some up at Adafruit Industries

Download

Click the Downloads Tab in the Tabbar above. Or follow this link

Installation

  • Uncompress the Downloaded Library
  • Rename the uncompressed folder to LPD8806
  • Check that the LPD8806 folder contains LPD8806.cpp and LPD8806.h
  • Place the LPD8806 library folder your /libraries/ folder, if the libraries folder does not exist - create it first!
  • If your libraries folder already contains an LPD8806 folder, replace it with this version
  • Restart the IDE

About

Arduino library for LED strips and pixels using LPD8806. This is a bit of a hack for speeding up the refresh rate without using SPI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Processing 68.6%
  • C++ 20.6%
  • C 10.8%