WS2801-Pi
Search…
Overview
Installation
Wiring
Usage
Example Animation
Functions
Changelog
Functions
Constructor
getLedStrip
setLed
fillLeds
setBrightness
setBrightness
getBrightness
setLedStrip
onLedStripChanged
onBrightnessChanged
clearLeds
show
Types
Ws2801PiConfig
ClockSpeed
LedColor
LedStrip
Powered By
GitBook
setLedStrip
Changes the color of each led of the LED strip individually.
Parameters
ledStrip
The new LED strip.
LedStrip
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!
Functions - Previous
getBrightness
Next - Functions
onLedStripChanged
Last modified
1yr ago
Copy link
Contents
Parameters
Example