Description
Is updating the scale needle only possible if scale mode LV_SCALE_MODE_ROUND_INNER/OUTER is set?
LVGL 9.2.2 source code:
void lv_scale_set_line_needle_value(lv_obj_t * obj, lv_obj_t * needle_line, int32_t needle_length, int32_t value)
{
...
if((scale->mode != LV_SCALE_MODE_ROUND_INNER) &&
(scale->mode != LV_SCALE_MODE_ROUND_OUTER)) {
return;
}
...
}
How do i update a horizontal scale needle?
What MCU/Processor/Board and compiler are you using?
LilyGo T-Display S3, EEZ Studio, PlatformIO
What do you want to achieve?
I want to achieve updating a horizontal scale with a needle on it.
What have you tried so far?
I have tried to call lv_scale_set_line_needle_value in my loop timer function.