WS2801-Pi
Search…
setLedStrip
Changes the color of each led of the LED strip individually.‌

Parameters‌

Example

1
const ledStrip = [{
2
red: 255,
3
green: 0,
4
blue: 0,
5
},
6
{
7
red: 255,
8
green: 255,
9
blue: 0,
10
},
11
{
12
red: 0,
13
green: 255,
14
blue: 255,
15
}];​
16
17
ledController.setLedStrip(ledStrip);
Copied!
Last modified 9mo ago
Copy link