![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
prende foco
Revision 0:749cb63173c7, committed 2013-10-02
- Comitter:
- Carlos_IMT
- Date:
- Wed Oct 02 16:35:22 2013 +0000
- Commit message:
- led2
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 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Oct 02 16:35:22 2013 +0000 @@ -0,0 +1,62 @@ +#include "mbed.h" +DigitalOut myled(PTB19); +DigitalOut myled2(PTB18); +DigitalOut myled3(LED1); +int main() { + + myled2 = 1; + myled3 = 1; + + while(1) { + myled = 1; + wait(0.5); + myled = 0; + myled2 = 1; + myled3 = 1; + wait(0.5); + myled2 = 1; + wait(0.5); + myled2 = 0; + myled = 1; + myled3 = 1; + wait(0.5); + myled3 = 1; + wait(0.5); + myled3 = 0; + myled2 = 1; + myled = 1; + wait(0.5); + + + + + myled = 0; + myled2 = 0; + myled3 = 1; + wait(1); + + + myled2 = 0; + myled = 1; + myled3 = 0; + wait(1); + + + myled3 = 0; + myled2 = 1; + myled = 0; + wait(1); + + + myled = 0; + myled2 = 0; + myled3 = 0; + wait(1); + + myled = 1; + myled2 = 1; + myled3 = 1; + wait(1); + } + +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Oct 02 16:35:22 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/a9913a65894f \ No newline at end of file