This is just a small program to check what possible led effects could be done - ofcourse the knight rider is the coolest one :)
Revision 0:7ac23aec3248, committed 2010-08-01
- Comitter:
- Flanker
- Date:
- Sun Aug 01 19:25:40 2010 +0000
- Commit message:
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 7ac23aec3248 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sun Aug 01 19:25:40 2010 +0000 @@ -0,0 +1,30 @@ +#include "mbed.h" +//This is just a small testing program what LED effects can be done (knight rider style :)) + +DigitalOut myled1(LED1); +DigitalOut myled2(LED2); +DigitalOut myled3(LED3); +DigitalOut myled4(LED4); + +int main() { + while(1) { + //This part will turn on the leds + myled1 = 1; + wait(0.1); + myled2 = 1; + wait(0.1); + myled3 = 1; + wait(0.1); + myled4 = 1; + wait(0.1); + //This part will turn off the leds + myled1 = 0; + wait(0.1); + myled2 = 0; + wait(0.1); + myled3 = 0; + wait(0.1); + myled4 = 0; + wait(0.1); + } +} \ No newline at end of file
diff -r 000000000000 -r 7ac23aec3248 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sun Aug 01 19:25:40 2010 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/9114680c05da