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
setLed
Changes the color of a single LED.
Parameters
ledIndex
The index of the LED whose color should be changed.
number
color
The color the LED should become.
LedColor
Example
1
const
yellow
=
{
2
red
:
255
,
3
green
:
255
,
4
blue
:
0
,
5
};
6
7
ledController
.
setLed
(
10
,
yellow
);
Copied!
Functions - Previous
getLedStrip
Next - Functions
fillLeds
Last modified
1yr ago
Copy link
Contents
Parameters
Example