Versuch 2

Dependencies:   mbed

Committer:
Dominik32
Date:
Thu Apr 16 11:54:02 2015 +0000
Revision:
0:363abd3fc535
Child:
1:5bcd7fd92f60
Test_2

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Dominik32 0:363abd3fc535 1 #include "mbed.h"
Dominik32 0:363abd3fc535 2 #include "ur_Bertl.h"
Dominik32 0:363abd3fc535 3 #include "const.h"
Dominik32 0:363abd3fc535 4 #include "Alle_Befehle.h"
Dominik32 0:363abd3fc535 5
Dominik32 0:363abd3fc535 6 int main()
Dominik32 0:363abd3fc535 7 {
Dominik32 0:363abd3fc535 8 Alle_Befehle_bertl karel;
Dominik32 0:363abd3fc535 9
Dominik32 0:363abd3fc535 10 for (int x = 0; x < 10; x++)
Dominik32 0:363abd3fc535 11 {
Dominik32 0:363abd3fc535 12
Dominik32 0:363abd3fc535 13
Dominik32 0:363abd3fc535 14 if( karel.IsButtonPressed(BTN_FLL || BTN_FL || BTN_FM || BTN_FR || BTN_FRR || BTN_BL || BTN_BM || BTN_BR))
Dominik32 0:363abd3fc535 15 karel.TurnLeft();
Dominik32 0:363abd3fc535 16
Dominik32 0:363abd3fc535 17
Dominik32 0:363abd3fc535 18 karel.Move();
Dominik32 0:363abd3fc535 19
Dominik32 0:363abd3fc535 20 }
Dominik32 0:363abd3fc535 21
Dominik32 0:363abd3fc535 22 karel.ShutOff();
Dominik32 0:363abd3fc535 23
Dominik32 0:363abd3fc535 24 }