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,10 +1,3 @@
from imagetools import get_png_info, open_png
# Register PNG image decoder
decoder = lv.img.decoder_create()
decoder.info_cb = get_png_info
decoder.open_cb = open_png
# Create an image from the png file
try:
with open('../../assets/img_star.png','rb') as f: