You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
ImageView: add GIF support
This commit is contained in:
@@ -277,6 +277,12 @@ with open("../icons/big-buck-bunny_320x180.gif", 'rb') as f: # works
|
||||
print("done")
|
||||
|
||||
|
||||
screen = lv.obj()
|
||||
gif = lv.gif(screen)
|
||||
gif.set_src("M:data/images/tunnel_160x107.gif")
|
||||
gif.center()
|
||||
#gif.set_size(320,240)
|
||||
lv.screen_load(screen)
|
||||
|
||||
# BIN
|
||||
with open("/icon_64x64.bin", 'rb') as f:
|
||||
@@ -619,6 +625,8 @@ def log_callback(level, log_str):
|
||||
lv.log_register_print_cb(log_callback)
|
||||
|
||||
|
||||
lv.log_register_print_cb(None)
|
||||
|
||||
# Function to get FPS
|
||||
def get_fps():
|
||||
return fps_buffer[0]
|
||||
|
||||
Reference in New Issue
Block a user