Skip to content

Commit 60e70e3

Browse files
authored
LVGL fix zoom example
1 parent 5ef77a0 commit 60e70e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/LVGL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ def animate_logo()
456456
cur_zoom += cur_incr
457457
if cur_zoom > 300 cur_incr = - cur_incr end
458458
if cur_zoom < 200 cur_incr = - cur_incr end
459-
logo.set_zoom(cur_zoom)
459+
logo.set_style_transform_scale(cur_zoom, lv.PART_MAIN | lv.STATE_DEFAULT)
460460
tasmota.set_timer(100, animate_logo)
461461
end
462462
animate_logo()

0 commit comments

Comments
 (0)