brian elliott
/
mbed_blinky2
blink3
main.cpp@0:3b5a917de6c0, 2015-05-27 (annotated)
- Committer:
- brelliott
- Date:
- Wed May 27 16:06:09 2015 +0000
- Revision:
- 0:3b5a917de6c0
blink3
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
brelliott | 0:3b5a917de6c0 | 1 | #include "mbed.h" |
brelliott | 0:3b5a917de6c0 | 2 | |
brelliott | 0:3b5a917de6c0 | 3 | DigitalOut myled(LED1); |
brelliott | 0:3b5a917de6c0 | 4 | |
brelliott | 0:3b5a917de6c0 | 5 | int main() { |
brelliott | 0:3b5a917de6c0 | 6 | while(1) { |
brelliott | 0:3b5a917de6c0 | 7 | myled = 1; |
brelliott | 0:3b5a917de6c0 | 8 | wait(200); |
brelliott | 0:3b5a917de6c0 | 9 | myled = 0; |
brelliott | 0:3b5a917de6c0 | 10 | wait(200); |
brelliott | 0:3b5a917de6c0 | 11 | } |
brelliott | 0:3b5a917de6c0 | 12 | } |