mirror of
https://github.com/lvgl/lvgl.git
synced 2024-11-24 10:22:53 +08:00
chore: fix micropython example
This commit is contained in:
parent
c526653822
commit
51efe57ae9
@ -113,7 +113,7 @@ class LvExampleAnim_3():
|
||||
var.set_style_translate_x(v, lv.PART.MAIN)
|
||||
|
||||
def anim_path_bezier3_cb(self,a):
|
||||
t = lv.map(a.act_time, 0, a.time, 0, 1024)
|
||||
t = lv.map(a.act_time, 0, a.duration, 0, 1024)
|
||||
step = lv.bezier3(t, 0, self.p1, self.p2, 1024)
|
||||
new_value = step * (a.end_value - a.start_value)
|
||||
new_value = new_value >> 10
|
||||
|
Loading…
Reference in New Issue
Block a user