2016-12-15 01:37 AM
Hi,
I'm using BSP Library for STM32469i-Discovery.
Create a new project using CubeMX, added some code and compile it.
the result is here.
my CubeMX project configure is here.
No change is made to any configure LCD.
here is my main code....
/* USER CODE BEGIN 2 */
BSP_LCD_Init();
BSP_LCD_LayerDefaultInit(LTDC_DEFAULT_ACTIVE_LAYER, LCD_FB_START_ADDRESS);
BSP_LCD_SelectLayer(LTDC_DEFAULT_ACTIVE_LAYER);
BSP_LCD_DisplayOn();
BSP_LCD_Clear(LCD_COLOR_RED);
HAL_Delay(1000);
BSP_LCD_SetTextColor(LCD_COLOR_YELLOW);
BSP_LCD_FillRect(0,0,800,480);
BSP_LCD_SetTextColor(LCD_COLOR_LIGHTBLUE);
BSP_LCD_DisplayStringAt(0,50, (
uint8_t
*)''test font''
,LEFT_MODE
);
sprintf
(str,''%5lu''
,BSP_LCD_GetXSize());BSP_LCD_DisplayStringAt(0,100, (
uint8_t
*)str,LEFT_MODE
);
sprintf
(str,''%5lu''
,BSP_LCD_GetYSize());BSP_LCD_DisplayStringAt(0,150, (
uint8_t
*)str,LEFT_MODE
);BSP_LCD_SetTextColor(LCD_COLOR_DARKCYAN);
BSP_LCD_DrawLine(0,200,800,310);
/* USER CODE END 2 */
Please, help.
#469i #lcd #stm32469i2016-12-20 04:52 AM
Dear
SoHaeng.Lee
, You can refer to the LCD examples under STM32CubeF4 package to see their structure and configuration:STM32Cube_FW_F4_V1.0\Projects\STM32469I-Discovery\Applications\Display
Theworking example can help you about LCD configuration and programming the display.Look at these manuals :
, in '5.1 LCD configuration'section and . Hoe this helps you.Best Regards
-Imen-
2016-12-20 10:00 PM
ok, thanks.
but, i need CubeMX Project file.
I was try to find *.ioc files but, i couldn't find *.ioc files.
2017-05-04 06:29 AM
Hello
SoHaeng.Lee
,You are right, there is no ioc in the Repository/STM32Cube_FW_..... However, those examples aimed at being integrated manually in your ioc project.
If you need some help, don't hesitate to have a look to the following posts that will give you some tips and tricks to integrate the BSP on top of your CubeMX code generated :
i hope it will help you.
BR. Eric