SHOHEI FUJIMOTO
/
LedBlink
simple led blink
main.cpp@0:4a314632764b, 2013-08-06 (annotated)
- Committer:
- sfjmt
- Date:
- Tue Aug 06 10:19:54 2013 +0000
- Revision:
- 0:4a314632764b
simple led blink
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sfjmt | 0:4a314632764b | 1 | #include "mbed.h" |
sfjmt | 0:4a314632764b | 2 | |
sfjmt | 0:4a314632764b | 3 | DigitalOut myled(LED3); |
sfjmt | 0:4a314632764b | 4 | |
sfjmt | 0:4a314632764b | 5 | int main() { |
sfjmt | 0:4a314632764b | 6 | while(1) { |
sfjmt | 0:4a314632764b | 7 | myled = 1; |
sfjmt | 0:4a314632764b | 8 | wait(0.5); |
sfjmt | 0:4a314632764b | 9 | myled = 0; |
sfjmt | 0:4a314632764b | 10 | wait(0.5); |
sfjmt | 0:4a314632764b | 11 | } |
sfjmt | 0:4a314632764b | 12 | } |