T4-S3 Portrait vs. Landscape
GSGDaren opened this issue · 5 comments
Has anyone been successful in rotating their display on the T4-S3 using LVGL? I saw a post related to T3 that stated:
Changing these two lines will change the screen orientation
esp_lcd_panel_mirror(panel_handle, false, true); esp_lcd_panel_swap_xy(panel_handle, true);
But I see these values nowhere in the AMOLED codebase.
I've tried adding
disp_drv.sw_rotate = 1; disp_drv.rotated = LV_DISP_ROT_90;
to the beginLvglHelper function, but this causes screen tearing on the bottom portion of the rotated screen. Variations of the two property settings resulted in either no display at all or non-rotation.
LVGL forums indicate software rotation is not compatible with FULL_REFRESH. So, is there hardware supported screen rotation on the T4-S3?
Found it:
board.setRotation(45);
Why does 45 work? ¯_(ツ)_/¯ Seems that 90 Flips the display lengthwise and 180 is back to regular.
Have you seen this example? Parameter range 0~3
Thanks Lewis, that seems like a much more appropriate method to use.
If there is anything else, please reopen the issue