nopnop2002 / esp-idf-st7789

ST7789 Driver for esp-idf
MIT License
234 stars 56 forks source link

Supported orientation config #41

Closed twotreeszf closed 2 months ago

twotreeszf commented 2 months ago

You can configure the display orientation of the screen in menuconfig, and the appropriate cmds will send during driver initialization.

twotreeszf commented 2 months ago

orientation

nopnop2002 commented 2 months ago

Have you confirmed that the sample project I provided works correctly if you change the memory data access control?

Please check with 240x240 TFT.

Only DISPLAY_ORIENTATION_PORTRAIT_INVERTED is displayed correctly.

(EDIT) I tested your code. It is not displayed correctly.

    while (1) {
        ArrowTest(&dev, fx16G, CONFIG_WIDTH, CONFIG_HEIGHT);
        WAIT;
    }

IMG_5280

If you change the memory data access control, the TFT coordinates will change. If you change the memory data access control, what was displayed before the change will not be displayed correctly.

You can check the ST7789 data sheet to see how the memory data access control changes affect you. https://newhavendisplay.com/content/datasheets/ST7789V.pdf