lcdgfx icon indicating copy to clipboard operation
lcdgfx copied to clipboard

DisplayST7789 with negative colors

Open lukkass222 opened this issue 1 year ago • 2 comments

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 avatar Aug 18 '24 14:08 lukkass222