DISCO_F413ZH_LCD_demo

Dependencies:   mbed BSP_DISCO_F413ZH

Committer:
anoney180133
Date:
Thu Feb 06 04:45:36 2020 +0000
Revision:
0:eb0e1714a3af
DISCO_F413ZH_LCD_demo

Who changed what in which revision?

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