initial upload
This commit is contained in:
parent
938aa0db71
commit
353cfe723c
22 changed files with 1582 additions and 0 deletions
34
examples/osd/openvoting-box/ChainableLED/README.md
Normal file
34
examples/osd/openvoting-box/ChainableLED/README.md
Normal file
|
@ -0,0 +1,34 @@
|
|||
ChainableLED
|
||||
============
|
||||
|
||||
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.
|
||||
|
||||
Compatible with [Particle devices](https://www.particle.io/).
|
||||
|
||||
[More information on the wiki](https://github.com/pjpmarques/ChainableLED/wiki)
|
||||
|
||||
|
||||
Installation
|
||||
============
|
||||
1. Grab the latest version from the release section of GitHub.
|
||||
(https://github.com/pjpmarques/ChainableLED/releases)
|
||||
|
||||
2. Unzip it to your Arduino "libraries" directory.
|
||||
|
||||
3. It should be ready to use. Examples are included.
|
||||
|
||||
|
||||
Library Interface
|
||||
=================
|
||||
```c++
|
||||
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);
|
||||
}
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue