Bertluebung

Dependencies:   BertlUebung mbed

Files at this revision

API Documentation at this revision

Comitter:
richardkraus
Date:
Mon Dec 21 14:37:01 2015 +0000
Commit message:
Pactise

Changed in this revision

Bertl.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 86b729f5ece3 Bertl.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Bertl.lib	Mon Dec 21 14:37:01 2015 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/users/richardkraus/code/BertlUebung/#691491518d5e
diff -r 000000000000 -r 86b729f5ece3 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Dec 21 14:37:01 2015 +0000
@@ -0,0 +1,89 @@
+#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();
+   
+}
\ No newline at end of file
diff -r 000000000000 -r 86b729f5ece3 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Dec 21 14:37:01 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/165afa46840b
\ No newline at end of file