Skip to content

2.8" 240x320 Display with touch and ST7789 driver has colors inverted #213

Open
@pdfelen

Description

@pdfelen

With some help browsing the internet I did found a solution for my problem with the 2.8" 240x320 display. After initialization the colors are inverted.

In file "Adafruit_ST7789.cpp" on line 72 the command structure 'generic_st7789' holds setting ST77XX_INVON, for my screen this needs to be ST77XX_INVOFF.
After changing that my screen works.
For now I duplicated the Adafruit_ST7789 .cpp and .h files into Adafruit_ST7789_28.cpp and .h and made the change. A more permanent solution would be appreciated where this is user configurable.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions