teste FRamework
main.cpp@1:8f45e47d3d50, 2014-09-04 (annotated)
- Committer:
- kausdev
- Date:
- Thu Sep 04 02:36:27 2014 +0000
- Revision:
- 1:8f45e47d3d50
- Parent:
- 0:a4e17430319c
test blink;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kausdev | 0:a4e17430319c | 1 | #include "mbed.h" |
kausdev | 0:a4e17430319c | 2 | |
kausdev | 0:a4e17430319c | 3 | DigitalOut myled(LED1); |
kausdev | 0:a4e17430319c | 4 | |
kausdev | 0:a4e17430319c | 5 | int main() { |
kausdev | 1:8f45e47d3d50 | 6 | while(1) { |
kausdev | 1:8f45e47d3d50 | 7 | myled = 1; |
kausdev | 0:a4e17430319c | 8 | wait(0.2); |
kausdev | 0:a4e17430319c | 9 | myled = 0; |
kausdev | 0:a4e17430319c | 10 | wait(0.2); |
kausdev | 0:a4e17430319c | 11 | } |
kausdev | 0:a4e17430319c | 12 | } |