senthil kumar
/
srkHelloWorld
Led flashing Hello World
Revision 0:08da40b1c4a2, committed 2012-12-26
- Comitter:
- srk
- Date:
- Wed Dec 26 17:26:13 2012 +0000
- Commit message:
- srkHelloWorld
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r 08da40b1c4a2 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Dec 26 17:26:13 2012 +0000 @@ -0,0 +1,16 @@ +#include "mbed.h" + +DigitalOut myled(LED1); + +int main() { + while(1) { + myled = 1; + wait(0.2); + myled = 0; + wait(0.2); + myled = 1; + wait(0.5); + myled = 0; + wait(0.5); + } +}
diff -r 000000000000 -r 08da40b1c4a2 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Dec 26 17:26:13 2012 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/63cdd78b2dc1 \ No newline at end of file