part1
Dependencies: mbed
main.cpp@0:c50371494998, 2015-01-27 (annotated)
- Committer:
- jaredwil
- Date:
- Tue Jan 27 18:49:43 2015 +0000
- Revision:
- 0:c50371494998
- Child:
- 1:3aa59818cdce
hjkl
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jaredwil | 0:c50371494998 | 1 | #include "mbed.h" |
jaredwil | 0:c50371494998 | 2 | |
jaredwil | 0:c50371494998 | 3 | DigitalOut myled(LED1); |
jaredwil | 0:c50371494998 | 4 | |
jaredwil | 0:c50371494998 | 5 | int main() { |
jaredwil | 0:c50371494998 | 6 | while(1) { |
jaredwil | 0:c50371494998 | 7 | myled = 1; |
jaredwil | 0:c50371494998 | 8 | wait(0.2); |
jaredwil | 0:c50371494998 | 9 | myled = 0; |
jaredwil | 0:c50371494998 | 10 | wait(0.2); |
jaredwil | 0:c50371494998 | 11 | } |
jaredwil | 0:c50371494998 | 12 | } |