LED helloworld
Revision 0:9617aaae7943, committed 2015-01-14
- Comitter:
- kirthigaannamalai
- Date:
- Wed Jan 14 07:12:13 2015 +0000
- Commit message:
- added led2
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.lib | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r 9617aaae7943 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Jan 14 07:12:13 2015 +0000 @@ -0,0 +1,15 @@ +#include "mbed.h" + +DigitalOut myled(LED1); +DigitalOut myled2(LED2); + +int main() { + while(1) { + myled = 1; + myled2=0; + wait(0.5); + myled = 0; + myled2=1; + wait(0.5); + } +}
diff -r 000000000000 -r 9617aaae7943 mbed.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.lib Wed Jan 14 07:12:13 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/gokmenascioglu/code/mbed/#a8fa94490a0a