Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed BSP_DISCO_F413ZH
main.cpp@0:c00aeedac8b5, 2020-02-08 (annotated)
- Committer:
- arunkoeri
- Date:
- Sat Feb 08 09:12:49 2020 +0000
- Revision:
- 0:c00aeedac8b5
test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
arunkoeri | 0:c00aeedac8b5 | 1 | #include "mbed.h" |
arunkoeri | 0:c00aeedac8b5 | 2 | #include "stm32f413h_discovery_lcd.h" |
arunkoeri | 0:c00aeedac8b5 | 3 | |
arunkoeri | 0:c00aeedac8b5 | 4 | int main() |
arunkoeri | 0:c00aeedac8b5 | 5 | { |
arunkoeri | 0:c00aeedac8b5 | 6 | BSP_LCD_Init(); |
arunkoeri | 0:c00aeedac8b5 | 7 | |
arunkoeri | 0:c00aeedac8b5 | 8 | /* Clear the LCD */ |
arunkoeri | 0:c00aeedac8b5 | 9 | BSP_LCD_Clear(LCD_COLOR_WHITE); |
arunkoeri | 0:c00aeedac8b5 | 10 | |
arunkoeri | 0:c00aeedac8b5 | 11 | BSP_LCD_DisplayStringAt(0, LINE(1), (uint8_t *)"MBED EXAMPLE", CENTER_MODE); |
arunkoeri | 0:c00aeedac8b5 | 12 | wait(2); |
arunkoeri | 0:c00aeedac8b5 | 13 | BSP_LCD_Clear(LCD_COLOR_GREEN); |
arunkoeri | 0:c00aeedac8b5 | 14 | BSP_LCD_SetBackColor(LCD_COLOR_GREEN); |
arunkoeri | 0:c00aeedac8b5 | 15 | BSP_LCD_SetTextColor(LCD_COLOR_BLACK); |
arunkoeri | 0:c00aeedac8b5 | 16 | BSP_LCD_DisplayStringAt(0, LINE(5), (uint8_t *)"DISCOVERY STM32F413ZH", CENTER_MODE); |
arunkoeri | 0:c00aeedac8b5 | 17 | |
arunkoeri | 0:c00aeedac8b5 | 18 | while(1) { |
arunkoeri | 0:c00aeedac8b5 | 19 | } |
arunkoeri | 0:c00aeedac8b5 | 20 | } |