feat(examples) adjust micropython examples to use lv_png (#3639)
This commit is contained in:
@@ -2,12 +2,6 @@
|
||||
import usys as sys
|
||||
import lvgl as lv
|
||||
import display_driver
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user