russhughes / gc9a01_mpy

Fast MicroPython driver for GC9A01 display modules written in C
Other
146 stars 31 forks source link

jpg() fast mode ask for too much memory #47

Open amplatzer opened 1 week ago

amplatzer commented 1 week ago

115200 for 240*240 is way too much for micropython.

And the slow mode is too slow.

The M5 libraries load the jpg file blazing fast and with less memory. how did they do that?

russhughes commented 1 day ago

Can you post a link to the M5 Libraries you are looking at?

amplatzer commented 1 day ago

Can you post a link to the M5 Libraries you are looking at?

https://github.com/m5stack/M5GFX/tree/master https://github.com/m5stack/M5Dial

but it's in C, they offer the pre-compiled MPY firmware with M5burner, so I can't find the source code in python.

amplatzer commented 1 day ago

I was testing with M5dial which has a ESP32-S3FN8 chip, and without PSRAM, the offical firmware displays the jpg files fast.

amplatzer commented 1 day ago

Can you post a link to the M5 Libraries you are looking at?

ah, looks like this is the one you need , https://github.com/m5stack/uiflow-micropython

I used the Widgets.Image function to display the image.

https://uiflow-micropython.readthedocs.io/en/latest/widgets/image.html