I want to rotate my display in direct mode. I used partial mode in previous LVGL versions but on the FSP port, it seems that only direct mode is supported.
The LVGL documentation mentions that:
Note that in [LV_DISPLAY_RENDER_MODE_DIRECT] the small changed areas are rendered directly in the frame buffer so they cannot be rotated later. Therefore in direct mode only the whole frame buffer can be rotated.
Can you advise on how to rotate the whole buffer in direct mode ?
In LV_DISPLAY_RENDER_MODE_DIRECT , rotation must be applied to the entire frame buffer at once (not per-area). The Renesas GLCDC driver (lv_renesas_glcdc.c`) only supports software rotation in partial mode , not direct mode.
“Software based screen rotation is supported in partial mode”
Thanks for your response. Ok, so the first step is to switch to partial mode.
RM_LVGL_PORT_Open which is the Renesas/FSP function that initializes the LVGL port driver is by default configuring the direct mode. I have tried to change LV_DISPLAY_RENDER_MODE_DIRECT to LV_DISPLAY_RENDER_MODE_PARTIAL to configure partial mode.