Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 0:a4929a29b24f, committed 2015-05-08
- Comitter:
- kevinfellegi
- Date:
- Fri May 08 08:52:48 2015 +0000
- Commit message:
- LED 1-4 ein/ausschalten lassen
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 a4929a29b24f main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri May 08 08:52:48 2015 +0000 @@ -0,0 +1,25 @@ +#include "mbed.h" + +DigitalOut myled_1(LED1); +DigitalOut myled_2(LED2); +DigitalOut myled_3(LED3); +DigitalOut myled_4(LED4); + +int main() +{ + while(1) { + myled_1 = 1; + wait(1); + myled_1 = 0; + myled_2 = 1; + wait(1); + myled_2=0; + myled_3=1; + wait(1); + myled_3=0; + myled_4=1; + wait(1); + myled_4=0; + + } +}
diff -r 000000000000 -r a4929a29b24f mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri May 08 08:52:48 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/8ab26030e058 \ No newline at end of file