How to rotate screen

How to rotate screen

What MCU/Processor/Board and compiler are you using?
→ STM32H743II CONTROLLER & STM32 cube ide compiler

What LVGL version are you using?
→ version 8.0

What do you want to achieve?
→ screen to rotate 90 degree & 270 degree

What have you tried so far?
disp_drv.sw_rotate = 1;
lv_disp_set_rotation(NULL, LV_DISP_ROT_90);

1.lv_disp_set_rotation(NULL, LV_DISP_ROT_90); & lv_disp_set_rotation(NULL, LV_DISP_ROT_270);
get like below image.Not display properly.


2. lv_disp_set_rotation(NULL, LV_DISP_ROT_180); & lv_disp_set_rotation(NULL, LV_DISP_ROT_NONE); display correctly

LV_DISP_ROT_90 & LV_DISP_ROT_270 rotation how given properly.