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

DisplayST7789 with negative colors #125

Open
lukkass222 opened this issue Aug 18, 2024 · 2 comments
Open

DisplayST7789 with negative colors #125

lukkass222 opened this issue Aug 18, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@lukkass222
Copy link

lukkass222 commented Aug 18, 2024

Hello, I started testing the colors on the display7789, and I noticed that the colors were inverted.
To confirm if the problem was with the display, I tested other libraries.

with tft_espi, everything worked fine.

with the Adafruit-ST7735, the colors were inverted, but in Adafruit there is the function .invertDisplay(bool), putting tft.invertDisplay(false); fixes the problem.

from that I did:

 #define ST77XX_INVOFF 0x20
 #define ST77XX_INVON 0x21

 display.getInterface().start();
 display.getInterface().send(ST77XX_INVOFF);
 display.getInterface().stop();

It's not ideal but it works

@lukkass222 lukkass222 added the bug Something isn't working label Aug 18, 2024
@lukkass222
Copy link
Author

ok, the display starts in inverted mode.

0x21, CMD_DELAY, 10, // INVON (21h): Display Inversion On"

@lexus2k
Copy link
Owner

lexus2k commented Aug 18, 2024

That's interesting. All displays I had in my hands required inversion mode.
The possible solution is to add invertmode API for st7789 displays.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants