ST / Mbed 2 deprecated DISCO_F413ZH-LCD-demo

Dependencies:   BSP_DISCO_F413ZH mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "stm32f413h_discovery_lcd.h"
00003 
00004 int main()
00005 {
00006     BSP_LCD_Init();
00007 
00008     /* Clear the LCD */
00009     BSP_LCD_Clear(LCD_COLOR_WHITE);
00010 
00011     BSP_LCD_DisplayStringAt(0, LINE(1), (uint8_t *)"MBED EXAMPLE", CENTER_MODE);
00012     wait(2);
00013     BSP_LCD_Clear(LCD_COLOR_GREEN);
00014     BSP_LCD_SetBackColor(LCD_COLOR_GREEN);
00015     BSP_LCD_SetTextColor(LCD_COLOR_BLACK);
00016     BSP_LCD_DisplayStringAt(0, LINE(5), (uint8_t *)"DISCOVERY STM32F413ZH", CENTER_MODE);
00017 
00018     while(1) {
00019     }
00020 }