Orientation change to portrait

Description

hi, i trying to change the orientation to portrait of lcd but not successful, i had test the base code in landscape and it’s working well. below is the mention source code that i had changed to make it working in portrait view. by doing it it show the window in portrait view but with rough view. image is attached

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

STM32f469i-disco

What do you want to achieve?

orientation change to portrait

What have you tried so far?

i had done below
tft.c
// portrait
uint32_t lcd_x_size = OTM8009A_480X800_WIDTH; /* 480 /
uint32_t lcd_y_size = OTM8009A_480X800_HEIGHT; /
800 /
// landscape
// uint32_t lcd_x_size = OTM8009A_800X480_WIDTH; /
800 /
// uint32_t lcd_y_size = OTM8009A_800X480_HEIGHT; /
480 */

OTM8009A_Init(OTM8009A_FORMAT_RBG565, LCD_ORIENTATION_PORTRAIT);

tft.h
#define TFT_HOR_RES 480
#define TFT_VER_RES 800

Code to reproduce

Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.

The code block(s) should be formatted like:

/*You code here*/

Screenshot and/or video

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

Try to switch horizontal and vertical size. I had the same issue first time i did used the library with an esp32 in tft.h hor 800 vert 480

thanks issue is fixed by below

/**

  • @file lv_conf.h

*/

/*

  • COPY THIS FILE AS lv_conf.h NEXT TO the lvgl FOLDER
    */

#if 1 /Set it to “1” to enable content/

#ifndef LV_CONF_H
#define LV_CONF_H
/* clang-format off */

#include <stdint.h>

/*====================
Graphical settings
====================/

/* Maximal horizontal and vertical resolution to support by the library.*/
#define LV_HOR_RES_MAX (480)
#define LV_VER_RES_MAX (800)