How to use TFT_eSPI library for 16 bit colour rendering? #2478
reflectingme
started this conversation in
Compatible displays and setup files
Replies: 1 comment
-
Red and Blue pixels are swapped. This is at a hardware level in the display screen. Add ONE of the following lines in your setup file.
|
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.
-
OK, werid issue here, probably down to my ignorance but wondering if anyone can point me in the right direction please.
I am using the LilyGo T-Embed ESP32S3 device which is working almost as I wish, however when using the TFT_eSPI library, the colors displayed either as backgrounds, text or drawn objects are all incorrect.
For example, the code:
tft.fillScreen(TFT_RED);
actually fills the screen with blue!! and...
... renders teal coloured text and NOT yellow!!
Now, I am sure it is something to do with the color bit rendering and type, which for all the other T-Display boards I have is RGB565 and with the very same TFT_eSPI library works fine. These boards are 8 bit colour but I think the T-Embed is 16 bit.
How do I use the TFT_eSPI library for 16 bit colour?
Beta Was this translation helpful? Give feedback.
All reactions