Mirza Mesic
/
mbed_laufshift
laushift
Revision 0:874de0b957ec, committed 2019-12-02
- Comitter:
- mirzamesic
- Date:
- Mon Dec 02 18:27:25 2019 +0000
- Commit message:
- laufshift
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 874de0b957ec main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Dec 02 18:27:25 2019 +0000 @@ -0,0 +1,26 @@ + +#include "mbed.h" + +BusOut myleds(LED1, LED2, LED3, LED4); + +int main() { + + + + while(1) { + + + uint8_t i=0b00010000; + + for(int a=0;a<5;a++) + { + i=i>>1; + myleds = i; + wait(0.25); + } + + + + + } +}
diff -r 000000000000 -r 874de0b957ec mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Dec 02 18:27:25 2019 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file