Adafruit-ST7735-Library icon indicating copy to clipboard operation
Adafruit-ST7735-Library copied to clipboard

Blue color displayed as RED

Open brightproject opened this issue 2 years ago • 3 comments

#define BLUE 0x001F /* 0, 0, 255 */ tft.fillScreen(BLUE); Why?

brightproject avatar Mar 07 '23 12:03 brightproject

Hi @brightproject , Maybe used GREENTAB or default nothing in InitR? Try tft.initR(INITR_BLACKTAB); in void setup section. tadamx

tadamx avatar Mar 23 '23 13:03 tadamx

GREENTAB - initialisation GOOD, but image shifted. I corrected file Adafruit_ST7735.cpp

//madctl = ST77XX_MADCTL_MX | ST77XX_MADCTL_MY | ST7735_MADCTL_BGR;
madctl = ST77XX_MADCTL_MX | ST77XX_MADCTL_MY | ST77XX_MADCTL_RGB;

brightproject avatar Mar 23 '23 14:03 brightproject

GREENTAB - initialisation GOOD, but image shifted.

Did you mean BLACKTAB? Because your corrected version of Adafruit_ST7735.cpp would cause BLACKTAB colors to be used. It would also cause the image to be shifted if it is the same display type as in #191 and #154.

samo-sk avatar Aug 11 '23 14:08 samo-sk