Dominik Weiss
/
Beeper_Test
zum Beeper fahren
Diff: main.cpp
- Revision:
- 0:363abd3fc535
- Child:
- 1:5bcd7fd92f60
diff -r 000000000000 -r 363abd3fc535 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Apr 16 11:54:02 2015 +0000 @@ -0,0 +1,24 @@ +#include "mbed.h" +#include "ur_Bertl.h" +#include "const.h" +#include "Alle_Befehle.h" + +int main() +{ + Alle_Befehle_bertl karel; + + for (int x = 0; x < 10; x++) + { + + + if( karel.IsButtonPressed(BTN_FLL || BTN_FL || BTN_FM || BTN_FR || BTN_FRR || BTN_BL || BTN_BM || BTN_BR)) + karel.TurnLeft(); + + + karel.Move(); + + } + + karel.ShutOff(); + +}