This is a port of Adafruit's LPD6803 Library on ESP8266 platform. Original library for Arduino can be found here: https://github.com/adafruit/LPD6803-RGB-Pixels
Connect GPIO_0 of ESP8266 to DATA and GPIO_2 to CLCK.
First of all, you must define number of LEDs on your strip. It can be done in file lpd6803.h, definition name: numLEDs. This step is very important to have a correct LEDs addressing.
You must call lpd6803_init() function, to initialize GPIO outputs and variables from user_init() function. It is highly reccomended to call lpd6803_show() after lpd6803_init(). This will make all LEDs inactive (black).
By changing 200ms to another value, you can increase or decrease speed of predefined mode.
- Running pixel, can be started by lpd6803_startRunningPixel(lpd6803_Color(255, 0, 0))
- Running line, can be started by lpd6803_startRunningLine(lpd6803_Color(255, 0, 0))