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:0ea1e8d20871, committed 2015-05-22
- Comitter:
- Sandra8152
- Date:
- Fri May 22 14:10:27 2015 +0000
- Commit message:
- LED3
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 0ea1e8d20871 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri May 22 14:10:27 2015 +0000 @@ -0,0 +1,28 @@ +#include "mbed.h" + +BusOut myled(LED1, LED2, LED3, LED4); + +int main() +{ + char wert = 1; + bool vor = true; + + while(1) + { + myled = wert; + wait(0.2); + + if(vor) + { + wert = wert << 1; + if(wert >= 8) + vor = false; + } + else + { + wert = wert >> 1; + if(wert < 2) + vor = true; + } + } +}
diff -r 000000000000 -r 0ea1e8d20871 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri May 22 14:10:27 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/dbbf35b96557 \ No newline at end of file