Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
00001 #include "mbed.h" 00002 #include "const.h" 00003 #include "Robot.h" 00004 00005 Robot bertl; 00006 00007 void AufKnopfdruckWarten() 00008 { 00009 bertl.WaitUntilButtonPressed(); 00010 } 00011 void NichtsVorDemBertl() 00012 { 00013 bertl.FrontIsClear(); 00014 } 00015 void NebenDemBeeper() 00016 { 00017 bertl.NextToABeeper(); 00018 } 00019 void KnopfGedrueckt(const int btn) 00020 { 00021 bertl.IsButtonPressed(btn); 00022 } 00023 int WelcherKnopf() 00024 { 00025 bertl.ReturnButtonPressed(); 00026 } 00027 void NachVor() 00028 { 00029 bertl.Move(); 00030 } 00031 void Links() 00032 { 00033 bertl.TurnLeft(); 00034 } 00035 void OrangeLeds(int x) 00036 { 00037 bertl.NibbleLeds(x); 00038 } 00039 void LedAn(int16_t a) 00040 { 00041 bertl.TurnLedOn(a); 00042 } 00043 void LedAus(int16_t b) 00044 { 00045 bertl.TurnLedOff(b); 00046 } 00047 void Bunt(bool rot, bool gruen, bool blau) 00048 { 00049 bertl.RGBLed(rot, gruen, blau); 00050 } 00051 void BlaueLedsAn() 00052 { 00053 bertl.BlueLedsON(); 00054 } 00055 void BlaueLedsAus() 00056 { 00057 bertl.BlueLedsOFF(); 00058 } 00059 00060 //---------------------------------------------------------------------------------------------------------------------------------------------// 00061 00062 int main() 00063 { 00064 NachVor(); 00065 Links(); 00066 NachVor(); 00067 Links(); 00068 NachVor(); 00069 Links(); 00070 NachVor(); 00071 Links(); 00072 BlaueLedsAn(); 00073 NachVor(); 00074 BlaueLedsAus(); 00075 Links(); 00076 Links(); 00077 Links(); 00078 Links(); 00079 00080 00081 }
Generated on Mon Jul 18 2022 13:52:54 by
1.7.2