Funktionen umbennenen

Dependencies:   Bertl mbed

Files at this revision

API Documentation at this revision

Comitter:
Nitox09
Date:
Mon Dec 21 14:35:36 2015 +0000
Commit message:
Funktionen umbennenen

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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Bertl.lib	Mon Dec 21 14:35:36 2015 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/users/Nitox09/code/Bertl/#a5568f72381f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Dec 21 14:35:36 2015 +0000
@@ -0,0 +1,88 @@
+
+
+#include "mbed.h"
+#include "const.h"
+#include "Robot.h"
+
+Robot bertl;
+
+void Los()
+{
+    bertl.Move();
+}
+
+void HexLed(int value)
+{
+    bertl.NibbleLeds(value);
+}
+
+void LedAn(int16_t led)
+{
+    bertl.TurnLedOn(LED_FR1);
+}
+
+void LedAus(int16_t led)
+{
+    bertl.TurnLedOff(LED_FR1);
+}
+
+void RGB(bool rot, bool gruen, bool blau)
+{
+    bertl.RGBLed(rot, gruen, blau);
+}
+
+void BlaueLedAn()
+{
+    bertl.BlueLedsON();
+}
+void BlaueLedAus()
+{
+    bertl.BlueLedsOFF();
+}
+
+void DrehLinks()
+{
+    bertl.TurnLeft();  
+}
+
+bool WarteBisKnopfGedrueckt()
+{
+    bertl.WaitUntilButtonPressed();
+}
+
+bool VorneKlar()
+{
+    bertl.FrontIsClear();
+}
+
+bool NebenBiper()
+{
+    return bertl.NextToABeeper();   
+}
+
+bool IstKnopfGedrueckt(const int btn)
+{
+    return bertl.IsButtonPressed(btn)
+}
+
+bool KnopfGedruecktZurueckgeben()
+{
+    return bertl.ReturnButtonPressed();   
+}
+
+int main()
+{
+    Los();
+    HexLed(4);
+    LedAn(LED_FR1);
+    LedAus(LED_FR1);
+    RGB(1, 1, 1);
+    BlaueLedAn();
+    BlaueLedAus();
+    DrehLinks();
+    WarteBisKnopfGedrueckt();
+    VorneKlar();
+    NebenBiper();
+    IstKnopfGedrueckt(BT_BR);
+    KnopfGedruecktZurueckgeben();
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Dec 21 14:35:36 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/165afa46840b
\ No newline at end of file