Koji ohashi
/
mbed_blinky
test
main.cpp@0:9c59e5c83e1b, 2016-06-10 (annotated)
- Committer:
- ohashi_koji
- Date:
- Fri Jun 10 01:57:45 2016 +0000
- Revision:
- 0:9c59e5c83e1b
test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ohashi_koji | 0:9c59e5c83e1b | 1 | #include "mbed.h" |
ohashi_koji | 0:9c59e5c83e1b | 2 | |
ohashi_koji | 0:9c59e5c83e1b | 3 | DigitalOut myled_a(LED1); |
ohashi_koji | 0:9c59e5c83e1b | 4 | DigitalOut myled_b(LED3); |
ohashi_koji | 0:9c59e5c83e1b | 5 | |
ohashi_koji | 0:9c59e5c83e1b | 6 | int main() { |
ohashi_koji | 0:9c59e5c83e1b | 7 | while(1) { |
ohashi_koji | 0:9c59e5c83e1b | 8 | myled_a = 1; |
ohashi_koji | 0:9c59e5c83e1b | 9 | myled_b = 0; |
ohashi_koji | 0:9c59e5c83e1b | 10 | wait(1); |
ohashi_koji | 0:9c59e5c83e1b | 11 | myled_a = 0; |
ohashi_koji | 0:9c59e5c83e1b | 12 | myled_b = 1; |
ohashi_koji | 0:9c59e5c83e1b | 13 | wait(1); |
ohashi_koji | 0:9c59e5c83e1b | 14 | } |
ohashi_koji | 0:9c59e5c83e1b | 15 | } |