Skip to content

Mirror TFT screen on Y axis direction #29

Closed
@Salanova

Description

Hi!
I've just bought a TFT 1.8 screen and I'm trying out ST7735 library and Adafruit GFX and all works very well. The problem is that I need to mirror the screen on Y axis.
I found this addresses searching on internet:

ST7735_cmd(0x36); // Memory data access control:
// MY MX MV ML RGB MH - -
// ST7735_data(0x00); // Normal: Top to Bottom; Left to Right; RGB
// ST7735_data(0x80); // Y-Mirror: Bottom to top; Left to Right; RGB
// ST7735_data(0x40); // X-Mirror: Top to Bottom; Right to Left; RGB
// ST7735_data(0xc0); // X-Mirror,Y-Mirror: Bottom to top; Right to left; RGB
// ST7735_data(0x20); // X-Y Exchange: X and Y changed positions
// ST7735_data(0xA0); // X-Y Exchange,Y-Mirror
// ST7735_data(0x60); // X-Y Exchange,X-Mirror
// ST7735_data(0xE0); // X-Y Exchange,X-Mirror,Y-Mirror

What should I modify on the library in order to mirror my screen?

Thank you!!

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