Bertluebung
Dependencies: BertlUebung mbed
main.cpp
- Committer:
- richardkraus
- Date:
- 2015-12-21
- Revision:
- 0:86b729f5ece3
File content as of revision 0:86b729f5ece3:
#include "mbed.h" #include "const.h" #include "Robot.h" Robot bertl; void WarteAufAktion() { bertl.WaitUntilButtonPressed(); } void NichtsVorBertl() { bertl.FrontIsClear(); } void NebenBeeper() { bertl.NextToABeeper(); } void KnopfGedrueckt(const int btn) { bertl.IsButtonPressed(btn); } int WelcherKnopf() { bertl.ReturnButtonPressed(); } void Bewege() { bertl.Move(); } void DreheLinks() { bertl.TurnLeft(); } void Karusell(); { for(int a = 10; a > 0; a++) bertl.TurnLeft(); } void LedLeiste(int a) { bertl.NibbleLeds(a); } void LedsEin(int16_t a) { bertl.TurnLedOn(a); } void LedsAus(int16_t a) { bertl.TurnLedOff(a); } void BunteLed(bool r, bool g, bool b) { bertl.RGBLed(r,g,b); } void BlaueLedsAn() { bertl.BlueLedsON(); } void BlaueLedsAus() { bertl.BlueLedsOFF(); } int main() { Bewege(); for (int a = 5; a > 0; a++) { BlaueLedsAn(); BlaueLedsAus(); } Karusell(); }