This is a example of LCD demo

Dependencies:   mbed BSP_DISCO_F413ZH

Committer:
sarin_beam30
Date:
Sat Feb 08 08:34:03 2020 +0000
Revision:
0:b382cc581f41
first commit

Who changed what in which revision?

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