Arduino library compatible with Grove Chainable LED and the P9813 chip. It allows controlling a chain of LEDS individually.
Supports both RGB and HSL color spaces for setting the color of each individual LED.
Compatible with Particle devices.
-
Grab the latest version from the release section of GitHub. (https://github.com/pjpmarques/ChainableLED/releases)
-
Unzip it to your Arduino "libraries" directory.
-
It should be ready to use. Examples are included.
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 setColorHSL(byte led, float hue, float saturation, float lightness);
}