STM32F469NI Discovery board drivers
Dependents: DISCO-F469NI_LCDTS_GUI_demo Configurable_Robots DISCO-F469NI_LCD_demo DISCO-F469NI_SD_demo ... more
You are viewing an older revision! See the latest version
Issues
Wrong configuration for Portrait orientation¶
Description¶
The LCD display is wrong (white screen) if the Portrait mode is selected.
Resolution¶
In the function BSP_LCD_InitEx (file stm32f469i_discovery_lcd.c), replace the following lines of code:
if(orientation == LCD_ORIENTATION_PORTRAIT) { VSA = OTM8009A_480X800_VSYNC; /* 12 */ VBP = OTM8009A_480X800_VBP; /* 12 */ VFP = OTM8009A_480X800_VFP; /* 12 */ HSA = OTM8009A_480X800_HSYNC; /* 120 */ HBP = OTM8009A_480X800_HBP; /* 120 */ HFP = OTM8009A_480X800_HFP; /* 120 */ lcd_x_size = OTM8009A_480X800_WIDTH; /* 480 */ lcd_y_size = OTM8009A_480X800_HEIGHT; /* 800 */ }
by
if(orientation == LCD_ORIENTATION_PORTRAIT) { VSA = OTM8009A_480X800_HSYNC; VBP = OTM8009A_480X800_HBP; VFP = OTM8009A_480X800_HFP; HSA = OTM8009A_480X800_VSYNC; HBP = OTM8009A_480X800_VBP; HFP = OTM8009A_480X800_VFP; lcd_x_size = OTM8009A_480X800_WIDTH; /* 480 */ lcd_y_size = OTM8009A_480X800_HEIGHT; /* 800 */ }