ESP32 with ST7789 images from HttpRequests #2539
Unanswered
Qyther
asked this question in
Q&A - General
Replies: 2 comments 1 reply
-
Try the library branch and example here: |
Beta Was this translation helpful? Give feedback.
1 reply
-
This is the only example I have used, it downloads and copies into LittleFS: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm working on a project that requires me to transfer an image from a node server to my ESP32. Seeing as how I don't have enough heap to store a whole image, instead I'm sending an initiate/download request to the server, which will download the image on the computer. Then I return a token to the ESP32 which it uses to receive small parts of the image (256 to 1024 or so pixels at a time, I am able to set it to what I want). Then I use ArduinoJson to be able to read it, but it outputs it in a JsonArray. I have to map it to a small buffer, and then use pushImage() to draw it. This is, however, terribly slow. The loop takes ~30-40 milliseconds per 1024 pixels. For an image that is 128x128 it will take about 500-600ms just to do this.
Here is my code:
Now my question is: how could I speed this up besides something like saving it to an SD first and then pushing it? By that I mean that the whole process takes shorter. Other solutions or recommendations outside of arduino code are welcome! Thanks in advance.
(Edited because I managed to speed it up a little with ArduinoJson, but I would rather it pushes the image whole.)
Beta Was this translation helpful? Give feedback.
All reactions