Terry Lung
/
NewLoader
test
Fork of NewLoader by
main.cpp@0:890fbf136674, 2017-12-09 (annotated)
- Committer:
- TYLG
- Date:
- Sat Dec 09 11:31:20 2017 +0000
- Revision:
- 0:890fbf136674
- Child:
- 1:bdd416b8e5a8
BDtest0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
TYLG | 0:890fbf136674 | 1 | #include "mbed.h" |
TYLG | 0:890fbf136674 | 2 | |
TYLG | 0:890fbf136674 | 3 | DigitalOut led1(LED1); |
TYLG | 0:890fbf136674 | 4 | |
TYLG | 0:890fbf136674 | 5 | // main() runs in its own thread in the OS |
TYLG | 0:890fbf136674 | 6 | int main() { |
TYLG | 0:890fbf136674 | 7 | while (true) { |
TYLG | 0:890fbf136674 | 8 | led1 = !led1; |
TYLG | 0:890fbf136674 | 9 | wait(0.5); |
TYLG | 0:890fbf136674 | 10 | } |
TYLG | 0:890fbf136674 | 11 | } |
TYLG | 0:890fbf136674 | 12 |