Test D21 Blinky
main.cpp@0:921a4680625a, 2017-07-03 (annotated)
- Committer:
- Helmut64
- Date:
- Mon Jul 03 12:03:07 2017 +0000
- Revision:
- 0:921a4680625a
Checkin for publish
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Helmut64 | 0:921a4680625a | 1 | #include "mbed.h" |
| Helmut64 | 0:921a4680625a | 2 | |
| Helmut64 | 0:921a4680625a | 3 | DigitalOut myled(LED1); |
| Helmut64 | 0:921a4680625a | 4 | |
| Helmut64 | 0:921a4680625a | 5 | int main() { |
| Helmut64 | 0:921a4680625a | 6 | printf("RESET\r\n"); |
| Helmut64 | 0:921a4680625a | 7 | while(1) { |
| Helmut64 | 0:921a4680625a | 8 | myled = 1; |
| Helmut64 | 0:921a4680625a | 9 | wait(0.2); |
| Helmut64 | 0:921a4680625a | 10 | myled = 0; |
| Helmut64 | 0:921a4680625a | 11 | wait(0.2); |
| Helmut64 | 0:921a4680625a | 12 | printf("TEST\r\n"); |
| Helmut64 | 0:921a4680625a | 13 | } |
| Helmut64 | 0:921a4680625a | 14 | } |
Helmut Tschemernjak