Demo

Dependencies:   mbed BSP_DISCO_F413ZH

Committer:
john1118
Date:
Sat Feb 08 08:32:37 2020 +0000
Revision:
0:816e37b262b4
LCD

Who changed what in which revision?

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