Description
I want to set the Angle to 360 °, which is a full circle.
If the scale angel is set to 360° then the scale will be drawn again at the beginning (end),
The other problem is that no matter how I set it, the color of the last scale won’t change.Guage seems to have a similar problem
What MCU/Processor/Board and compiler are you using?
stm32l475 @ MDK
What LVGL version are you using?
7.10.0
lv_obj_t *light_meter = lv_linemeter_create(lv_scr_act(),NULL);
lv_obj_set_style_local_bg_opa(light_meter, LV_LINEMETER_PART_MAIN, LV_STATE_DEFAULT, 0);
lv_obj_set_style_local_line_width(light_meter,LV_LINEMETER_PART_MAIN,LV_STATE_DEFAULT,4);
lv_obj_set_style_local_scale_width(light_meter,LV_LINEMETER_PART_MAIN,LV_STATE_DEFAULT,10);
lv_obj_set_size(light_meter,200,200);
lv_linemeter_set_range(light_meter, 1, 50); /*Set the range*/
lv_linemeter_set_value(light_meter, 60); /*Set the current value*/
lv_linemeter_set_scale(light_meter, 360-(360/50), 50-1); /*Set the angle and number of lines*/
lv_linemeter_set_angle_offset(light_meter,180);
lv_obj_align(light_meter,lv_scr_act(), LV_ALIGN_CENTER, 0, 0);