WS2801-Pi
Search…
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!
Last modified 1yr ago
Copy link