LCD example.

Dependencies:   BSP_DISCO_F413ZH mbed

Committer:
arostm
Date:
Wed May 17 14:16:43 2017 +0200
Revision:
0:adbe8684bb7c
Child:
1:1025d8dcf8ec
Creation of an LCD exemple for the DISCO-F413ZH board

Who changed what in which revision?

UserRevisionLine numberNew contents of line
arostm 0:adbe8684bb7c 1 #include "mbed.h"
arostm 0:adbe8684bb7c 2 #include "stm32f413h_discovery_lcd.h"
arostm 0:adbe8684bb7c 3
arostm 0:adbe8684bb7c 4 int main()
arostm 0:adbe8684bb7c 5 {
arostm 0:adbe8684bb7c 6 BSP_LCD_Init();
arostm 0:adbe8684bb7c 7
arostm 0:adbe8684bb7c 8 /* Clear the LCD */
arostm 0:adbe8684bb7c 9 BSP_LCD_Clear(LCD_COLOR_WHITE);
arostm 0:adbe8684bb7c 10
arostm 0:adbe8684bb7c 11 BSP_LCD_DisplayStringAt(0, LINE(1), (uint8_t *)"MBED EXAMPLE", CENTER_MODE);
arostm 0:adbe8684bb7c 12 wait(2);
arostm 0:adbe8684bb7c 13 BSP_LCD_Clear(LCD_COLOR_GREEN);
arostm 0:adbe8684bb7c 14 BSP_LCD_SetBackColor(LCD_COLOR_GREEN);
arostm 0:adbe8684bb7c 15 BSP_LCD_SetTextColor(LCD_COLOR_BLACK);
arostm 0:adbe8684bb7c 16 BSP_LCD_DisplayStringAt(0, LINE(5), (uint8_t *)"DISCOVERY STM32F413ZH", CENTER_MODE);
arostm 0:adbe8684bb7c 17
arostm 0:adbe8684bb7c 18 while(1) {
arostm 0:adbe8684bb7c 19 }
arostm 0:adbe8684bb7c 20 }
arostm 0:adbe8684bb7c 21