lv_anim_speed_to_time() function
Calculate the time of an animation with a given speed and the start and end values
Syntax
uint32_t lv_anim_speed_to_time(uint32_t speed,
int32_t start,
int32_t end);
Arguments
speed
speed of animation in unit/sec
start
start value of the animation
end
end value of the animation
Return value
the required time [ms] for the animation with the given parameters