How can I rotate the screen?

Description

I am building a project using EEZ Studio, LVGL, and a Waveshare ESP32-S3 Touch 7" display. I have some screens that look best if in portrait mode, but other screens that are best in landscape mode. Is it possible to rotate the screen as needed, or is this a difficult thing to accomplish? How do I accomplish this within the EEZ studio environment? I know I need to add some C code, but I am not sure what code and or where.

What MCU/Processor/Board and compiler are you using?

Waveshare ESP32-S3 Touch 7" LCD

What LVGL version are you using?

8.3.11

What do you want to achieve?

When I switch screens, I would sometimes like to change the orientation from portrait to landscape, and then back again as needed.

What have you tried so far?

I have googled a lot of examples, but it is not clear this can even be done.


Screenshot and/or video

If possible, add screenshots and/or videos about the current state.

You need to use lv_disp_set_rotation(). But also you need to change settings of your LCD

You can also choose to rotate your display at the drivers level. What drivers are you using for your display?

In esp32 you can try with these two functions esp_lcd_panel_swap_xy() y esp_lcd_panel_mirror() but in EEZ Studio I have not been able to rotate the screen either