Skip to content

Commit b1398b8

Browse files
committed
feat(png) use lv_png
1 parent 573d58c commit b1398b8

File tree

10 files changed

+3
-478
lines changed

10 files changed

+3
-478
lines changed

.gitmodules

-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,3 @@
44
[submodule "micropython/pycparser"]
55
path = pycparser
66
url = https://github.com/eliben/pycparser.git
7-
[submodule "driver/png/lodepng"]
8-
path = driver/png/lodepng
9-
url = https://github.com/lvandeve/lodepng.git

driver/js/imagetools.py

-95
This file was deleted.

driver/png/lodepng

-1
This file was deleted.

driver/png/mp_lodepng.c

-31
This file was deleted.

examples/example2.py

-164
This file was deleted.

examples/png_example.py

-7
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
sys.path.append('') # See: https://github.com/micropython/micropython/issues/6419
1010

1111
import lvgl as lv
12-
from imagetools import get_png_info, open_png
1312
import display_driver_utils
1413

1514
# Init
@@ -23,12 +22,6 @@
2322
except NameError:
2423
script_path = ''
2524

26-
# Register an image decoder
27-
28-
decoder = lv.img.decoder_create()
29-
decoder.info_cb = get_png_info
30-
decoder.open_cb = open_png
31-
3225
# Load the image
3326

3427
with open('%s/png_decoder_test.png' % script_path, 'rb') as f:

0 commit comments

Comments
 (0)