How to change color lv_ex_led_1

I fiddle with the awesome lvgl Preoject
I’m happy that it works now with my ESP-WROVER-KIT 4.1
My question how do I change the color of the LED
I tried it with _lv_obj_set_style_local_color but don’t know what is the second Parameter

lv_obj_t * led1  = lv_led_create(lv_scr_act(), NULL);
    //_lv_obj_set_style_local_color(led1,  , LV_STATE_DEFAULT, LV_COLOR_MAKE(0XFF,0X00,0X19));
    lv_obj_align(led1, NULL, LV_ALIGN_CENTER, -80, 0);

Try this:

    lv_obj_set_style_local_bg_color(led3, LV_LED_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex(0xFF0019));

Thx Danke schön

Thx Danke schön

Bitte :slight_smile:

kisvegabor, tell me please how to define color in v8?
#define LV_COLOR_WHITE LV_COLOR_MAKE(0xFF, 0xFF, 0xFF) not working
compiler says “expected expression”


I’ve just updated the docs. See Colors — LVGL documentation