Pub Demo
Dependencies: mbed BSP_DISCO_F413ZH
main.cpp@0:5e327818ac28, 2020-02-08 (annotated)
- Committer:
- dewkul
- Date:
- Sat Feb 08 08:32:36 2020 +0000
- Revision:
- 0:5e327818ac28
Demo pub test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dewkul | 0:5e327818ac28 | 1 | #include "mbed.h" |
dewkul | 0:5e327818ac28 | 2 | #include "stm32f413h_discovery_lcd.h" |
dewkul | 0:5e327818ac28 | 3 | |
dewkul | 0:5e327818ac28 | 4 | int main() |
dewkul | 0:5e327818ac28 | 5 | { |
dewkul | 0:5e327818ac28 | 6 | BSP_LCD_Init(); |
dewkul | 0:5e327818ac28 | 7 | |
dewkul | 0:5e327818ac28 | 8 | /* Clear the LCD */ |
dewkul | 0:5e327818ac28 | 9 | BSP_LCD_Clear(LCD_COLOR_WHITE); |
dewkul | 0:5e327818ac28 | 10 | |
dewkul | 0:5e327818ac28 | 11 | BSP_LCD_DisplayStringAt(0, LINE(1), (uint8_t *)"MBED EXAMPLE", CENTER_MODE); |
dewkul | 0:5e327818ac28 | 12 | wait(2); |
dewkul | 0:5e327818ac28 | 13 | BSP_LCD_Clear(LCD_COLOR_GREEN); |
dewkul | 0:5e327818ac28 | 14 | BSP_LCD_SetBackColor(LCD_COLOR_GREEN); |
dewkul | 0:5e327818ac28 | 15 | BSP_LCD_SetTextColor(LCD_COLOR_BLACK); |
dewkul | 0:5e327818ac28 | 16 | BSP_LCD_DisplayStringAt(0, LINE(5), (uint8_t *)"DISCOVERY STM32F413ZH", CENTER_MODE); |
dewkul | 0:5e327818ac28 | 17 | |
dewkul | 0:5e327818ac28 | 18 | while(1) { |
dewkul | 0:5e327818ac28 | 19 | } |
dewkul | 0:5e327818ac28 | 20 | } |