-
Notifications
You must be signed in to change notification settings - Fork 17
Home
pjpmarques edited this page Dec 23, 2014
·
14 revisions
ChainableLED is an Arduino library compatible with Grove Chainable LED and the P9813 chip. It allows controlling a chain of LEDS individually. Supports both RGB and HSB color spaces for setting the color of each individual LED.
-
Grab the latest version from the
releases
section of the GitHub repository. -
Unzip it to your Arduino "libraries" directory.
-
It should be ready to use.
class ChainableLED {
public:
ChainableLED(byte clk_pin, byte data_pin, byte number_of_leds);
void init();
void setColorRGB(byte led, byte red, byte green, byte blue);
void setColorHSB(byte led, float hue, float saturation, float brightness);
}
Three different examples are in included with the library:
-
SimpleCycle: Video | Source Code
-
FadeInOut: Video | Source Code
-
CycleThroughColors: Video | Source Code