I’m trying to rotate the screen with modification some parameters as you can see below;
#define LV_HOR_RES_MAX (320)
#define LV_VER_RES_MAX (240)
#define TFT_HOR_RES 320
#define TFT_VER_RES 240
disp_drv.rotated = 1;
Also, I have changed some parameters to rotate and mirror the screen on TFT parameters. Furthermore, I have changed the synchronization parameters of the TFT in order to scan the screen at the exact time.
Moreover, I have swapped the touchscreen X and Y coordinates in order to adapt to the new rotated screen objects’ coordinates.
But, I have already a problem as you can see in the picture. The label shows X and Y coordinates of the middle left of the screen. So, the screen data is still sent as portrayed mode (X:240, Y:320).
How can I fix this issue or What should I do to change the screen buffer as landscape mode (320x240).