feat(examples) adjust micropython examples to use lv_png (#3639)

This commit is contained in:
Amir Gonnen
2022-08-30 00:12:37 +03:00
committed by GitHub
parent 125b72f010
commit 33d8ca779d
12 changed files with 0 additions and 75 deletions

View File

@@ -1,12 +1,7 @@
#!/opt/bin/lv_micropython -i
import lvgl as lv
import display_driver
from imagetools import get_png_info, open_png
from img_wink_png import img_wink_png_map
# Register PNG image decoder
decoder = lv.img.decoder_create()
decoder.info_cb = get_png_info
decoder.open_cb = open_png
img_wink_png = lv.img_dsc_t(
{