Takashi Ono
/
mbed_blinky
test
main.cpp@0:48468d6a64f0, 2019-09-05 (annotated)
- Committer:
- tughril
- Date:
- Thu Sep 05 20:46:58 2019 +0000
- Revision:
- 0:48468d6a64f0
test;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tughril | 0:48468d6a64f0 | 1 | #include "mbed.h" |
tughril | 0:48468d6a64f0 | 2 | |
tughril | 0:48468d6a64f0 | 3 | DigitalOut myled(LED1); |
tughril | 0:48468d6a64f0 | 4 | |
tughril | 0:48468d6a64f0 | 5 | int main() { |
tughril | 0:48468d6a64f0 | 6 | while(1) { |
tughril | 0:48468d6a64f0 | 7 | myled = 1; |
tughril | 0:48468d6a64f0 | 8 | wait(0.2); |
tughril | 0:48468d6a64f0 | 9 | myled = 0; |
tughril | 0:48468d6a64f0 | 10 | wait(0.2); |
tughril | 0:48468d6a64f0 | 11 | } |
tughril | 0:48468d6a64f0 | 12 | } |