1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00
lvgl/examples/libs/tjpgd/lv_example_tjpgd_1.py
_VIFEXTech e53cd59fcb
chore(libs/jpg): rename lv_jpg to lv_tjpgd (#4573)
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2023-09-20 10:38:47 +02:00

14 lines
265 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.image(lv.scr_act())
# The File system is attached to letter 'S'
wp.set_src("S:img_lvgl_logo.jpg")
wp.center()