Versuch 1

Dependencies:   mbed

Fork of Beeper_Test by Dominik Weiss

main.cpp

Committer:
Dominik32
Date:
2015-04-16
Revision:
0:363abd3fc535
Child:
1:5bcd7fd92f60

File content as of revision 0:363abd3fc535:

#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();

}