lv_led.h

API reference for lv_led.h

Report on GitHub
See Also: Private HeaderThis header has a companion private implementation with internal data structures.lv_led_private.h

Functions

lv_led_set_color

Set the color of the LED

 
void lv_led_set_color(lv_obj_t *led, lv_color_t color)
Parameters
NameTypeDescription
ledlv_obj_t *pointer to a LED object
colorlv_color_tthe color of the LED

lv_led_set_brightness

Set the brightness of a LED object

 
void lv_led_set_brightness(lv_obj_t *led, uint8_t bright)
Parameters
NameTypeDescription
ledlv_obj_t *pointer to a LED object
brightuint8_tLV_LED_BRIGHT_MIN (max. dark) ... LV_LED_BRIGHT_MAX (max. light)

Enums

_lv_property_led_id_t

NameValue
LV_PROPERTY_LED_COLOR(LV_PROPERTY_LED_START + ((int) 0 )) | (( 3 ) << 28 )
LV_PROPERTY_LED_BRIGHTNESS(LV_PROPERTY_LED_START + ((int) 1 )) | (( 1 ) << 28 )
LV_PROPERTY_LED_END

Macros

LV_LED_BRIGHT_MIN

 
#define LV_LED_BRIGHT_MIN 80

Brightness when the LED if OFF

LV_LED_BRIGHT_MAX

 
#define LV_LED_BRIGHT_MAX 255

Brightness when the LED if ON

Variables

lv_led_class

 
const lv_obj_class_t lv_led_class

Dependencies

How is this guide?

Last updated on

On this page