Skip to content

TFT_invertDisplay() not working on M5Stack boards #98

@ajlennon

Description

@ajlennon

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions