Meter Widget bug or my mistake?


I Have been able to use LVGL meter widget. But I don’t know if this is the bug or my mistake. I am looking for a loading page, so the nearest widget which I can look for is a meter. Then I have added the scale, the indicator, and one animation like the examples. The problem arose when I want the animation to start at 6’o clock and rotate 360 degrees. There is no problem if one starts from 3’oclock.
Its attribute is that starting from 6’o clock, go to 9’oclock, then 12’oclock and then stops at 3’clock and restarts at 6’clock without reaching 4,5 or 6’o clock.

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


What LVGL version are you using?


What do you want to achieve?

Described above.

What have you tried so far?

I have done some coding, which is going to be described in the next part.

Code to reproduce

	lv_obj_t *Screenloading = lv_obj_create(NULL);
	lv_obj_set_size(Screenloading, 800, 480);
	Meter = lv_meter_create(Screenloading);
	lv_obj_set_align(Meter, LV_ALIGN_CENTER);
	lv_meter_scale_t * scale = lv_meter_add_scale(Meter);
	lv_obj_set_size(Meter, 400, 400);

	lv_meter_set_scale_range(Meter, scale, 0, 100, 360, 90);
// 	lv_meter_set_scale_range(Meter, scale, 0, 100, 360, 0); // This one is OK
	lv_meter_indicator_t * indic = lv_meter_add_arc(Meter, scale, 10, lv_palette_main(LV_PALETTE_RED), 0);

	lv_anim_t a;
	lv_anim_set_exec_cb(&a, set_value);
	lv_anim_set_values(&a, 0, 100);
	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, 0);
	lv_anim_set_var(&a, indic);