1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00
lvgl/examples/libs/sjpg/lv_example_sjpg_1.py
Uli Raich cd197a8e49
feat(examples) add micropython versions of the external library examples (#2762)
Co-authored-by: embeddedt <42941056+embeddedt@users.noreply.github.com>
2021-11-24 21:18:15 -05:00

14 lines
262 B
Python
Executable File

#!/opt/bin/lv_micropython -i
import lvgl as lv
import display_driver
import fs_driver
fs_drv = lv.fs_drv_t()
fs_driver.fs_register(fs_drv, 'S')
wp = lv.img(lv.scr_act())
# The File system is attached to letter 'S'
wp.set_src("S:small_image.sjpg")
wp.center()