Colors issues with ILI9341_2 on ESP32-2432S028R with 2 USB ports #3018
Replies: 9 comments 10 replies
-
I have same issue with @TheNitek |
Beta Was this translation helpful? Give feedback.
-
I had the same problem with the same board. I get normal colors by commenting out these two lines from ILI9341_Init.h: |
Beta Was this translation helpful? Give feedback.
-
Thanks @zehn-cat so much ! |
Beta Was this translation helpful? Give feedback.
-
@TheNitek This works great for me, thanks! How did you come up with this sequence? Did you find it somewhere? |
Beta Was this translation helpful? Give feedback.
-
Unfortunately the TFT screens vary in supplier and this screen appears to need different settings. Also some screens appear to have cloned chips fitted that are not OEM. So some tweaking may be needed in these cases. |
Beta Was this translation helpful? Give feedback.
-
I am having similar issue with the MakerFocus 1.3inch TFT LCD Display Module 3.3V with SPI Interface ST7789 IC Driver display. Wish I could know what I need to change to fix the gamma and the colors on it for my project. I have been commenting stuff out from ST7789_init.h but no luck so far. |
Beta Was this translation helpful? Give feedback.
-
For the lost souls still landing on this issue: The version with the 2 USB ports has a ST7789 So the "correct" config is |
Beta Was this translation helpful? Give feedback.
-
Toggling bit BGR of the register Memory Access Control (0x36) to change the colour representation sequence dind't work for me. So I did manually swap the code of the colours in my defines (I'm using STM32) , i.e. red (0xF800) became 0x001F , blue (0x001F) became 0xF800 and so on. Before I call any interface that takes colour as a parameter, I swap the the colour first. So, either we hard-swap it or we swap each time we call an interface. I find the later one better. |
Beta Was this translation helpful? Give feedback.
-
try the CYD2 alternate on this page. It assumes you have your pic 320x240 on the sd card |
Beta Was this translation helpful? Give feedback.
-
I am using bodmer/TFT_eSPI@^2.5.33 on a ESP32-2432S028R with 2 USB ports, which seems to have another variant of the ILI9341_2 (compared to the 1 USB variant).
In general it works well (just needs TFT_INVERSION_ON)
Only issue is that the colors are way of, which looks like very poor gamma settings:
While I don't have a clue how gamma works on the ILI9341, I just started experimenting and noticed that this highly improves the picture quality:
Does the gamma table maybe need a change because of the inversion?
Beta Was this translation helpful? Give feedback.
All reactions