Funktionen

Dependencies:   Bertl mbed

main.cpp

Committer:
david_burg
Date:
2015-12-21
Revision:
0:ae3f2f5383e1

File content as of revision 0:ae3f2f5383e1:

#include "mbed.h"
#include "Robot.h"
#include "const.h"
 
Robot bertl;
 
 

    void Bunt(bool rot,bool blau,bool grun)
    {
        bertl.RGBLed(rot,blau,grun);    
    }
    
    void Fahren()
    {
       bertl.Move(); 
    }
    
    void Rechts()
    {
        bertl.TurnLeft();    
    }
    
    void VierRoteLed(int count)
    {
            bertl.NibbleLeds(count);
    }
    void LedAn(int16_t led)
    {
        bertl.TurnLedOn(led);    
    }
    void LedAus(int16_t led)
    {
        bertl.TurnLedOff(led);    
    }
    void LedBlauAn()
    {
        bertl.BlueLedsON();    
    }
    void LedBlauAus()
    {
        bertl.BlueLedsOFF();    
    }
    bool WartenBisKnopfGedruckt()
    {
        return bertl.WaitUntilButtonPressed();   
    }
    bool VorneFrei()
    {
        return bertl.FrontIsClear();    
    }
    bool NebenEinenPieper()
    {
        return bertl.NextToABeeper();
    }
    bool KnopfGedruckt(const int a)
    {
        return bertl.IsButtonPressed(a);    
    }
    int GedruckterKnopfZuruck()
    {
        return bertl.ReturnButtonPressed();    
    }
    
    
int main()
{
       
}