Lukas Feldgrill
/
Uebung_Bertl
Nibble LED's: shows a binary design
Revision 0:a7181b3da9f8, committed 2015-04-16
- Comitter:
- feldgrill1
- Date:
- Thu Apr 16 11:48:39 2015 +0000
- Commit message:
- Nibble LED's
Changed in this revision
diff -r 000000000000 -r a7181b3da9f8 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Apr 16 11:48:39 2015 +0000 @@ -0,0 +1,23 @@ +#include "ur_Bertl.h" +#include "mbed.h" +#include "const.h" + +int main () +{ + ur_Bertl karel; + while(1) { + if( karel.IsButtonPressed(BTN_FLL)) + karel.NibbleLeds(0x0A); + + if( karel.IsButtonPressed(BTN_FL)) + karel.NibbleLeds(0x05); + + else + karel.NibbleLeds(0x00); + + } + + + + +} \ No newline at end of file
diff -r 000000000000 -r a7181b3da9f8 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Apr 16 11:48:39 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/487b796308b0 \ No newline at end of file
diff -r 000000000000 -r a7181b3da9f8 ur_Bertl.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ur_Bertl.lib Thu Apr 16 11:48:39 2015 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/teams/BERTL_CHEL_18/code/ur_Bertl/#6b667e2cb800