The default Hello World program, used when you create a new program
Fork of HelloWorld by
Revision 2:5e5813899f4f, committed 2014-03-23
- Comitter:
- sint12345
- Date:
- Sun Mar 23 15:38:14 2014 +0000
- Parent:
- 1:03c191369089
- Commit message:
- just want to view the file
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 03c191369089 -r 5e5813899f4f main.cpp --- a/main.cpp Sun Jan 01 20:57:57 2012 +0000 +++ b/main.cpp Sun Mar 23 15:38:14 2014 +0000 @@ -1,12 +1,31 @@ #include "mbed.h" - -DigitalOut myled(LED1); +# +DigitalOut myled1(LED1); +DigitalOut myled2(LED2); +DigitalOut myled3(LED3); +DigitalOut myled4(LED4); int main() { while(1) { - myled = 1; - wait(0.2); - myled = 0; - wait(0.2); + myled1 = 1; + wait(1); + myled1 = 0; + wait(1); + + myled2 = 1; + wait(1); + myled2 = 0; + wait(1); + + myled3 = 1; + wait(1); + myled3 = 0; + wait(1); + + myled4 = 1; + wait(1); + myled4 = 0; + wait(1); + } }