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.