Bodmer / TFT_eSPI

Arduino and PlatformIO IDE compatible TFT library optimised for the Raspberry Pi Pico (RP2040), STM32, ESP8266 and ESP32 that supports different driver chips
Other
3.68k stars 1.06k forks source link

Colors are flipped #2857

Closed smolbun closed 12 months ago

smolbun commented 12 months ago
  1. Colors are flipped, e.g TFT_BLUE will draw RED
  2. IDE: PlatformIO
  3. TFT_ESPI version: 2.4.61
  4. Procesor, e.g RP2040, ESP32 S3 etc
  5. TFT driver: ST7735_DRIVER with Air101-LCD and ESP32 C3
  6. SPI interface

    tft.invertDisplay(true); // Had to set to true otherwise TFT_BLACK would be white
    img.fillTriangle(58, 18, 58, 58, 98, 38, TFT_RED); // this would draw a blue triangle

    code.zip

smolbun commented 12 months ago

Fixed, for Air101-LCD


#define TFT_RGB_ORDER TFT_BGR  // Colour order Blue-Green-Red

this is needed