LCD example.

Dependencies:   BSP_DISCO_F413ZH mbed

Committer:
bcostm
Date:
Tue Sep 26 13:58:42 2017 +0000
Revision:
1:1025d8dcf8ec
Parent:
0:adbe8684bb7c
Add mbed library v151

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"
bcostm 1:1025d8dcf8ec 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);
bcostm 1:1025d8dcf8ec 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);
bcostm 1:1025d8dcf8ec 17
arostm 0:adbe8684bb7c 18 while(1) {
arostm 0:adbe8684bb7c 19 }
arostm 0:adbe8684bb7c 20 }