
Learning project for NCUT2019 ESD students
Dependencies: LCD_DISCO_F429ZI mbed mbed-rtos BSP_DISCO_F429ZI
main.cpp@13:4752ccf82972, 2019-05-11 (annotated)
- Committer:
- andrey001207
- Date:
- Sat May 11 02:51:59 2019 +0000
- Revision:
- 13:4752ccf82972
- Parent:
- 12:8679b4ebe162
Updated source code
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
emilmont | 1:491820ee784d | 1 | #include "mbed.h" |
andrey001207 | 12:8679b4ebe162 | 2 | #include "rtos.h" |
andrey001207 | 12:8679b4ebe162 | 3 | #include "LCD_DISCO_F429ZI.h" |
andrey001207 | 12:8679b4ebe162 | 4 | |
andrey001207 | 12:8679b4ebe162 | 5 | LCD_DISCO_F429ZI lcd; |
andrey001207 | 12:8679b4ebe162 | 6 | |
andrey001207 | 13:4752ccf82972 | 7 | DigitalOut led1(LED1,0); |
andrey001207 | 13:4752ccf82972 | 8 | DigitalOut led2(LED2,1); |
andrey001207 | 13:4752ccf82972 | 9 | |
andrey001207 | 13:4752ccf82972 | 10 | int main() { |
andrey001207 | 13:4752ccf82972 | 11 | lcd.DisplayStringAt(0, 20, (uint8_t *)"STUDENT", CENTER_MODE); |
andrey001207 | 13:4752ccf82972 | 12 | |
emilmont | 1:491820ee784d | 13 | while (true) { |
andrey001207 | 13:4752ccf82972 | 14 | led1 = !led1; |
andrey001207 | 13:4752ccf82972 | 15 | wait_ms(500); |
emilmont | 1:491820ee784d | 16 | } |
emilmont | 1:491820ee784d | 17 | } |