Create meter tick labels


What MCU/Processor/Board and compiler are you using?

Using the windows simulator x64

What LVGL version are you using?


What do you want to achieve?

Display labels on major ticks using meter object

What have you tried so far?

All examples non are showing labels on ticks

Code to reproduce

label = lv_label_create(lv_scr_act());
speedMeter = lv_meter_create(lv_scr_act());
lv_obj_set_size(speedMeter, 400, 400);

/*Remove the circle from the middle*/
lv_obj_remove_style(speedMeter, NULL, LV_PART_INDICATOR);

/*Add a scale first*/
lv_meter_set_scale_ticks(speedMeter, 100, 2, 10, lv_palette_main(LV_PALETTE_GREY));
lv_meter_set_scale_major_ticks(speedMeter, 10, 2, 20, lv_color_hex3(0xeee), 20);
lv_meter_set_scale_range(speedMeter, 0, 100, 270, 135);
/*Add a three arc indicator*/
lv_meter_indicator_t* indic1 = lv_meter_add_arc(speedMeter, 50, lv_palette_main(LV_PALETTE_RED), 0);
indic1->opa = LV_OPA_20;

/*Create an animation to set the value*/

lv_anim_set_exec_cb(&a, set_value);
lv_anim_set_values(&a, 0, 101);
lv_anim_set_repeat_delay(&a, 100);
lv_anim_set_playback_delay(&a, 100);
lv_anim_set_repeat_count(&a, LV_ANIM_REPEAT_INFINITE);

lv_anim_set_time(&a, 2000);
lv_anim_set_playback_time(&a, 500);
lv_anim_set_var(&a, indic1);

Screenshot and/or video