Closed tavdog closed 1 year ago
I have tried the instruction in this repo but no matter what Blue and Red are swapped.
It looks exactly like a tft.setSwapBytes(true); issue, where the two colour bytes are swapped, Big Endian-Little Endian issue, where Ox00FF is transposed to 0xFF00
Method 1: tft.setSwapBytes(true); Method 2: Use the mouse to drag the blue and red to exchange
Wow, thank you for the solution. Dragging the Red block over to the blue fixed the issue. But It never worked when I tried modifying swapBytes(true); Why would setting swapBytes(false) not work, but dragging the little color swatch would ?
The other solution that works is changing the following options in the user setup for tft_espi // #define TFT_RGB_ORDER TFT_RGB // Colour order Red-Green-Blue
swapBytes() is to modify the order of sending. For example, the normal transmission is from bit7->bit6->....->bit0. After enabling, the order is reversed even if bit0->bit1->..bit7
I've been trying everything and I can't get proper colors. The color is always shifted one way or the other. see photo. Is there a walkthrough somehwhere on how to do this ? The tool in the TFT_eSPI doesn't work. I can get recognisable images by exporting from GIMP as PNG and using img2cpp utility to create the C-array, but the colors are never correct.