Junichi Katsu
/
mbed_blinky
Lチカプログラム
main.cpp@0:5af076323480, 2016-02-25 (annotated)
- Committer:
- jksoft
- Date:
- Thu Feb 25 04:28:21 2016 +0000
- Revision:
- 0:5af076323480
??
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jksoft | 0:5af076323480 | 1 | #include "mbed.h" |
jksoft | 0:5af076323480 | 2 | |
jksoft | 0:5af076323480 | 3 | DigitalOut myled(LED1); |
jksoft | 0:5af076323480 | 4 | |
jksoft | 0:5af076323480 | 5 | |
jksoft | 0:5af076323480 | 6 | int main() { |
jksoft | 0:5af076323480 | 7 | |
jksoft | 0:5af076323480 | 8 | while(1) { |
jksoft | 0:5af076323480 | 9 | myled = 0; |
jksoft | 0:5af076323480 | 10 | wait(0.2); |
jksoft | 0:5af076323480 | 11 | myled = 1; |
jksoft | 0:5af076323480 | 12 | wait(0.2); |
jksoft | 0:5af076323480 | 13 | } |
jksoft | 0:5af076323480 | 14 | } |