lcdgfx
lcdgfx copied to clipboard
DisplayST7789 with negative colors
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