Hi. Im using a ILI9341 tft screen with the TFT_eSPI library. The thing is that for using an image on the screen, the library needs to read it from a char section, and since I need to use a lot of images, the .h file is too big to store it in the memory of the esp32. I was wondering if it was possible to just place the .h file onto the sd card, but as I readed in another post, it isn´t possible, so can anyone tell me how can I read the chars from the SD card, maybe in a text file and show them in my tft screen? btw, the chars are like 900 lines long each, so im not sure how to read that amount of lines.
And how big would that .h file be. More than 4Mb?
Leo..
it is possible, but this is not a solution for your problem
Instead of reading chars from a file and then converting it to the picture bytes - it would be better to store ready to use binary data in the file. To doing that, you need to convert your .h file to binary picture BEFORE storing it in SD
I guess so, or maybe I can store each image in a separate text file if thats the problem
Can you explain more about the binary please? Btw, I use this page: File to C style array converter to convert the image to the char array, and appears that also it supports converting it into to binary, but im not sure if the library would support that. Also the TFT_eSPI library uses the "PNGdec.h" library, so in this case I wouldnt need to use it? Also, how can I read it from the esp32?
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.