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

Go to the source code of this file.

Functions

int is31fl3733_blank (const struct device *dev, bool blank_en)
 Blanks IS31FL3733 LED display.
 
int is31fl3733_current_limit (const struct device *dev, uint8_t limit)
 Sets led current limit.
 

Function Documentation

◆ is31fl3733_blank()

int is31fl3733_blank ( const struct device dev,
bool  blank_en 
)

Blanks IS31FL3733 LED display.

When blank_en is set, the LED display will be disabled. This can be used for flicker-free display updates, or power saving.

Parameters
devLED device structure
blank_enshould blanking be enabled
Returns
0 on success, or negative value on error.

◆ is31fl3733_current_limit()

int is31fl3733_current_limit ( const struct device dev,
uint8_t  limit 
)

Sets led current limit.

Sets the current limit for the LED driver. This is a separate value from per-led brightness, and applies to all LEDs. This value sets the output current limit according to the following formula: (840/R_ISET) * (limit/256) See table 14 of the datasheet for additional details.

Parameters
devLED device structure
limitcurrent limit to apply
Returns
0 on success, or negative value on error.