Please, help me!!!
I'm having some issues rendering jpg images saved as hex at the flash memory.
The images present some glitches.
At the beggining I thougth it could be the image conversion but all the files of the TFT_flash_jpeg example presented the same gliteches an color distortion.
Other issue that's making me crazy is that when I work with tft.invertDisplay(0); my tft.fillscreen(tft_WHITE) makes the screen goes light green, but if I invert the display and fillscren(tft_BLACK) it turns a clear white screen...
I'm using an ESP32 (Wemos Lolin 32 version) with the following display: Display 4.0" SPI
Touch SKU MSP4022 ili9486 3,3v-5v 320X480 RGB 65K
First off. Run all of the library examples. Make sure that your colours and touch screen is working correctly.
The JPEG "feature" may need you to use tft.setSwapBytes(true);
From TFT_eSPI.h
// Image rendering
// Swap the byte order for pushImage() and pushPixels() - corrects endianness
void setSwapBytes(bool swap);
bool getSwapBytes(void);
Thank you for the fast answer David!
I already run all the library examples.
My touch screen is working well, but the color not much...
As I said, when I'm at the normal mode color (tft.invertDisplay(false)) my White color show something like light green, and all the other colors seens to have a little more green too.
If I invert the display, the colors match perfectly with the negative... Like if I do fillscreen(BLACK) the screen goes a perfect white, and if I do fillscreen(WHITE) it goes black
It is time for you to take a pencil and paper and write down every step that you take.
Just start from scratch again.
install TFT_eSPI
configure "User_Setup" e.g. select a ready-made Setup.h
run examples.
make notes about any edits. quote the actual library file by name. paste your changed lines.
if a custom file came from the internet, post a link
Then you can type up your notes into a Forum message.
Your readers need to know every step so that they can reproduce your "problems".
It helps if you number each step. This makes it easy to reference.
Yes, this all takes time and effort on your part. But it is minutes instead of 6 days !!
I can assure you that Bodmer's library works very well with JPEGs.