lv_led.h
Defines
-
LV_LED_BRIGHT_MIN
Brightness when the LED if OFF
-
LV_LED_BRIGHT_MAX
Brightness when the LED if ON
Functions
-
lv_obj_t *lv_led_create(lv_obj_t *parent)
Create a led object
- Parameters:
parent – pointer to an object, it will be the parent of the new led
- Returns:
pointer to the created led
-
void lv_led_set_color(lv_obj_t *led, lv_color_t color)
Set the color of the LED
- Parameters:
led – pointer to a LED object
color – the color of the LED
-
void lv_led_set_brightness(lv_obj_t *led, uint8_t bright)
Set the brightness of a LED object
- Parameters:
led – pointer to a LED object
bright – LV_LED_BRIGHT_MIN (max. dark) ... LV_LED_BRIGHT_MAX (max. light)
-
void lv_led_on(lv_obj_t *led)
Light on a LED
- Parameters:
led – pointer to a LED object
-
void lv_led_off(lv_obj_t *led)
Light off a LED
- Parameters:
led – pointer to a LED object
-
void lv_led_toggle(lv_obj_t *led)
Toggle the state of a LED
- Parameters:
led – pointer to a LED object
-
uint8_t lv_led_get_brightness(const lv_obj_t *obj)
Get the brightness of a LED object
- Parameters:
obj – pointer to LED object
- Returns:
bright 0 (max. dark) ... 255 (max. light)
Variables
-
const lv_obj_class_t lv_led_class