adafruit / Adafruit-ST7735-Library

This is a library for the Adafruit 1.8" SPI display http://www.adafruit.com/products/358 and http://www.adafruit.com/products/618
https://learn.adafruit.com/1-8-tft-display
547 stars 303 forks source link

Blue color displayed as RED #180

Open brightproject opened 1 year ago

brightproject commented 1 year ago

define BLUE 0x001F / 0, 0, 255 /

tft.fillScreen(BLUE); Why?

tadamx commented 1 year ago

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

brightproject commented 1 year ago

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;
samo-sk commented 11 months ago

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.