Wim Huiskamp
/
GoodbyeWorld
Stop the Blinking LED
main.cpp@0:088623ea241a, 2013-02-07 (annotated)
- Committer:
- wim
- Date:
- Thu Feb 07 19:15:35 2013 +0000
- Revision:
- 0:088623ea241a
GoodbyeWorld to stop the blinking LED
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
wim | 0:088623ea241a | 1 | #include "mbed.h" |
wim | 0:088623ea241a | 2 | |
wim | 0:088623ea241a | 3 | DigitalOut myled(LED1); |
wim | 0:088623ea241a | 4 | |
wim | 0:088623ea241a | 5 | int main() { |
wim | 0:088623ea241a | 6 | myled = 1; |
wim | 0:088623ea241a | 7 | wait(0.5); |
wim | 0:088623ea241a | 8 | myled = 0; |
wim | 0:088623ea241a | 9 | |
wim | 0:088623ea241a | 10 | while(1) { |
wim | 0:088623ea241a | 11 | wait(1.0); |
wim | 0:088623ea241a | 12 | } |
wim | 0:088623ea241a | 13 | } |