Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
tlc5971.h File Reference

Go to the source code of this file.

Macros

#define TLC5971_GLOBAL_BRIGHTNESS_CONTROL_MAX   127
 Maximum value for global brightness control, i.e 100% brightness.
 

Functions

int tlc5971_set_global_brightness (const struct device *dev, struct led_rgb pixel)
 Set the global brightness control levels for the tlc5971 strip.
 

Macro Definition Documentation

◆ TLC5971_GLOBAL_BRIGHTNESS_CONTROL_MAX

#define TLC5971_GLOBAL_BRIGHTNESS_CONTROL_MAX   127

Maximum value for global brightness control, i.e 100% brightness.

Function Documentation

◆ tlc5971_set_global_brightness()

int tlc5971_set_global_brightness ( const struct device * dev,
struct led_rgb pixel )

Set the global brightness control levels for the tlc5971 strip.

change will take effect on next update of the led strip

Parameters
devLED strip device
pixelglobal brightness values for RGB channels
Returns
0 on success, negative on error