T Umezawa
/
light1
Blinking LED
main.cpp@0:8e6728ceed66, 2020-12-29 (annotated)
- Committer:
- umezawa
- Date:
- Tue Dec 29 03:02:14 2020 +0000
- Revision:
- 0:8e6728ceed66
test1
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
umezawa | 0:8e6728ceed66 | 1 | #include "mbed.h" |
umezawa | 0:8e6728ceed66 | 2 | |
umezawa | 0:8e6728ceed66 | 3 | DigitalOut myled(LED1); |
umezawa | 0:8e6728ceed66 | 4 | |
umezawa | 0:8e6728ceed66 | 5 | int main() { |
umezawa | 0:8e6728ceed66 | 6 | while(1) { |
umezawa | 0:8e6728ceed66 | 7 | myled = 1; |
umezawa | 0:8e6728ceed66 | 8 | wait(0.5); |
umezawa | 0:8e6728ceed66 | 9 | myled = 0; |
umezawa | 0:8e6728ceed66 | 10 | wait(0.5); |
umezawa | 0:8e6728ceed66 | 11 | } |
umezawa | 0:8e6728ceed66 | 12 | } |