source: rtos_arduino/trunk/examples/NCESIoT_RTOS/ChainableLED/README.md@ 243

Last change on this file since 243 was 243, checked in by ertl-honda, 8 years ago

IoTパッケージの内容に合わせて更新

File size: 936 bytes
Line 
1ChainableLED
2============
3
4Arduino library compatible with Grove Chainable LED and the P9813 chip. It allows controlling a chain of LEDS individually.
5
6Supports both RGB and HSB color spaces for setting the color of each individual LED.
7
8Compatible with [Particle devices](https://www.particle.io/).
9
10[More information on the wiki](https://github.com/pjpmarques/ChainableLED/wiki)
11
12
13Installation
14============
151. Grab the latest version from the release section of GitHub.
16(https://github.com/pjpmarques/ChainableLED/releases)
17
182. Unzip it to your Arduino "libraries" directory.
19
203. It should be ready to use. Examples are included.
21
22
23Library Interface
24=================
25```c++
26class ChainableLED {
27public:
28 ChainableLED(byte clk_pin, byte data_pin, byte number_of_leds);
29
30 void init();
31 void setColorRGB(byte led, byte red, byte green, byte blue);
32 void setColorHSB(byte led, float hue, float saturation, float brightness);
33}
34```
Note: See TracBrowser for help on using the repository browser.