Daniel Spajic / Mbed 2 deprecated bertl_deutschefunktionen

Dependencies:   Bertl mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "const.h"
00003 #include "Robot.h"
00004 
00005 Robot bertl;
00006 
00007 void Bewegen()
00008 {
00009     bertl.Move();
00010 }
00011 
00012 void DrehLinks()
00013 {
00014     bertl.TurnLeft();
00015 }
00016 
00017 void VierUnterenLeds()
00018 {
00019     bertl.NibbleLeds(0x0F);
00020 }
00021 
00022 void LedAnmachen(int16_t led)
00023 {
00024     bertl.TurnLedOn(led);
00025 }
00026 
00027 void LedAusmachen(int16_t led)
00028 {
00029     bertl.TurnLedOff(led);
00030 }
00031 
00032 void RotGrunBlauLED()
00033 {
00034     bertl.RGBLed(1,1,1);
00035 }
00036 
00037 void BlaueLedsAN()
00038 {
00039     bertl.BlueLedsON();   
00040 }
00041 
00042 void BlaueLedsAUS()
00043 {
00044     bertl.BlueLedsOFF();
00045 }
00046 
00047 void WarteBisKnopfGedrucktIst()
00048 {
00049     bertl.WaitUntilButtonPressed();
00050 }
00051 
00052 void VorderseiteIstFrei()
00053 {
00054     bertl.FrontIsClear();
00055 }
00056 
00057 void NebenPiepser()
00058 {
00059     bertl.NextToABeeper();
00060 }
00061 
00062 void IstKnopfGedruckt(const int a)
00063 {
00064     bertl.IsButtonPressed(a);
00065 }
00066 
00067 void KnopfGedrucktZuruckholen()
00068 {
00069     bertl.ReturnButtonPressed(); 
00070 }
00071 
00072 int main() 
00073 {
00074     while(1) 
00075     {
00076         
00077     }
00078 }