MANOJ NARAYANAN
/
mdedtest
lpc11u24 test program
Revision 0:1d805334719f, committed 2019-12-13
- Comitter:
- manojn
- Date:
- Fri Dec 13 04:39:05 2019 +0000
- Commit message:
- mbed_4led
Changed in this revision
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
test.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r 1d805334719f mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Dec 13 04:39:05 2019 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/165afa46840b \ No newline at end of file
diff -r 000000000000 -r 1d805334719f test.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test.cpp Fri Dec 13 04:39:05 2019 +0000 @@ -0,0 +1,41 @@ + + +#include "mbed.h" + +DigitalOut myled2(LED2); +DigitalOut myled1(LED1); +DigitalOut myled3(LED3); +DigitalOut myled4(LED4); +DigitalOut myled5(p21); + + +int main() { + while(1) { + myled5=1; + wait(0.1); + myled5=0; + + + wait(0.1); + + myled2=1; + wait(0.1); + myled2=0; + + wait(0.1); + + myled3=1; + wait(0.1); + myled3=0; + + wait(0.1); + + myled4=1; + wait(0.1); + myled4=0; + + wait(0.1); + + + } +} \ No newline at end of file