WS2801-Pi
Search…
setBrightness
Changes the brightness of the LED strip.‌‌
The brightness can be set to a value between 0 and 100 or to 'auto'. If the brightness is set to 'auto', the RGB values are used for the brightness.

Parameters‌

    brightness The brightness the LED strip should become. number | 'auto'

Example

1
ledController.setBrightness(75);
2
ledController.setBrightness('auto');
Copied!
Last modified 9mo ago
Copy link