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