Santiago Gil
/
mbed_blinky
La primera publicación
main.cpp@0:d116054f9d67, 2015-03-13 (annotated)
- Committer:
- sagilar
- Date:
- Fri Mar 13 16:00:06 2015 +0000
- Revision:
- 0:d116054f9d67
- Child:
- 1:068629f1b91f
La primera publicaci?n
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sagilar | 0:d116054f9d67 | 1 | #include "mbed.h" |
sagilar | 0:d116054f9d67 | 2 | |
sagilar | 0:d116054f9d67 | 3 | DigitalOut myled(LED1); |
sagilar | 0:d116054f9d67 | 4 | |
sagilar | 0:d116054f9d67 | 5 | int main() { |
sagilar | 0:d116054f9d67 | 6 | while(1) { |
sagilar | 0:d116054f9d67 | 7 | myled = 1; |
sagilar | 0:d116054f9d67 | 8 | wait(0.2); |
sagilar | 0:d116054f9d67 | 9 | myled = 0; |
sagilar | 0:d116054f9d67 | 10 | wait(0.2); |
sagilar | 0:d116054f9d67 | 11 | } |
sagilar | 0:d116054f9d67 | 12 | } |