Andreas Koller
/
Bert_Sensoren
Sensoren Test
Diff: main.cpp
- Revision:
- 0:23efacfc4c60
- Child:
- 1:6fb229756f2a
diff -r 000000000000 -r 23efacfc4c60 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Apr 16 11:43:15 2015 +0000 @@ -0,0 +1,26 @@ +#include "mbed.h" +#include "const.h" +#include "ur_Bertl.h" +DigitalOut myled(LED1); + +int main() +{ + ur_Bertl karel; + + while(1) + { + + if( karel.IsButtonPressed(BTN_FL)) + karel.NibbleLeds(0x0B); + else + karel.NibbleLeds(0x00); + if( karel.IsButtonPressed(BTN_FLL)) + karel.NibbleLeds(0x0A); + else + karel.NibbleLeds(0x00); + if( karel.IsButtonPressed(BTN_FM)) + karel.NibbleLeds(0x0C); + else + karel.NibbleLeds(0x00); + } +}