Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blue color displayed as RED #180

Open
brightproject opened this issue Mar 7, 2023 · 3 comments
Open

Blue color displayed as RED #180

brightproject opened this issue Mar 7, 2023 · 3 comments

Comments

@brightproject
Copy link

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

@tadamx
Copy link

tadamx commented Mar 23, 2023

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

@brightproject
Copy link
Author

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 samo-sk mentioned this issue Aug 7, 2023
@samo-sk
Copy link

samo-sk commented Aug 11, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants