loboris / ESP32_TFT_library

Full featured TFT library for ESP32 with demo application
553 stars 219 forks source link

TFT_invertDisplay() not working on M5Stack boards #98

Open ajlennon opened 2 years ago

ajlennon commented 2 years ago

Hi,

I'm having a look at the demo code - thanks for this!

The display is inverted though (white <-> black etc.) Enabling the TFT_invertDisplay(INVERT_ON) doesn't have any effect.

However if I change the init sequenec that works

TFT_CMD_PIXFMT, 1, DISP_COLOR_BITS_24, TFT_INVOFF, 0, TFT_CMD_FRMCTR1, 2, 0x00, 0x18,

to

TFT_CMD_PIXFMT, 1, DISP_COLOR_BITS_24, TFT_INVON, 0, TFT_CMD_FRMCTR1, 2, 0x00, 0x18,

Am guessing there's some ordering dependency for the use of the command after init?