I’m trying to rotate my display image from landscape to portrait. When this is done in the SLS project settings it works fine in the user interface but has no effect on the actual display.
[
](https://www.waveshare.com/wiki/ESP32-S3-Touch-LCD-5#Modify_the_Driver)
#define ESP_PANEL_LCD_WIDTH (480)
#define ESP_PANEL_LCD_HEIGHT (800)
#define LVGL_PORT_ROTATION_DEGREE (90)
these macros are in [https://github.com/FCam1/waveshare_ESP32S3_TouchLCD4.3_Arduino](https://github.com/FCam1/waveshare_ESP32S3_TouchLCD4.3_Arduino)
______________________________________________________________________-
//And this code is **lv_hal_disp.h** in lvgl src
// arduino lvgl library version - 8.3.11
//Sqline version - 8.3.11
uint32_t direct_mode : 1; /**< 1: Use screen-sized buffers and draw to absolute coordinates*/
uint32_t full_refresh : 1; /**< 1: Always make the whole screen redrawn*/
uint32_t sw_rotate : 1; /**< 1: use software rotation (slower)*/
uint32_t antialiasing : 1; /**< 1: anti-aliasing is enabled on this display.*/
uint32_t rotated : 1; /**< 1: turn the display by 90 degree. @warning Does not update coordinates for you!*/
uint32_t screen_transp : 1; /**Handle if the screen doesn't have a solid (opa == LV_OPA_COVER) background.
* Use only if required because it's slower.*/