Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
amplatzer opened this issue Oct 1, 2024 · 4 comments
Open

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

amplatzer opened this issue Oct 1, 2024 · 4 comments

Comments

@amplatzer
Copy link

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
Copy link
Owner

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

@amplatzer
Copy link
Author

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
Copy link
Author

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

@amplatzer
Copy link
Author

amplatzer commented Oct 11, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants