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

TFT_invertDisplay() not working on M5Stack boards #98

Open
ajlennon opened this issue Sep 4, 2021 · 0 comments
Open

TFT_invertDisplay() not working on M5Stack boards #98

ajlennon opened this issue Sep 4, 2021 · 0 comments

Comments

@ajlennon
Copy link

ajlennon commented Sep 4, 2021

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?

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

1 participant