bool WaitUntilButtonPressed(); bool FrontIsClear(); bool NextToABeeper(); bool IsButtonPressed(const int btn); int ReturnButtonPressed();

Dependencies:   Bertl mbed

Files at this revision

API Documentation at this revision

Comitter:
Nicholas_
Date:
Mon Dec 21 14:31:18 2015 +0000
Commit message:
bool WaitUntilButtonPressed(); ; bool FrontIsClear(); ; bool NextToABeeper(); ; bool IsButtonPressed(const int btn); ; int ReturnButtonPressed(); ;

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 af676e438648 Bertl.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Bertl.lib	Mon Dec 21 14:31:18 2015 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/users/fpucher/code/Bertl/#308802267a62
diff -r 000000000000 -r af676e438648 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Dec 21 14:31:18 2015 +0000
@@ -0,0 +1,108 @@
+#include "mbed.h"
+#include "const.h"
+#include "Robot.h"
+
+Robot bertl;
+
+void Bewegen()
+{
+    bertl.move();    
+}
+
+void DrehLinks()
+{
+    bertl.TurnLeft();
+}
+
+void ViererKette(int value)
+{
+    bertl.NibbleLeds(value);
+}
+
+void SchalteLedEin(int16_t led)
+{
+    bertl.TurnLedOn(led);
+}
+
+void SchalteLedAus(int16_t led)
+{
+    bertl.TurnLedOff(led);
+}
+
+void RotGruenBlauLed(bool red, bool green, bool blue)
+{
+    bertl.RGBLed(red, green, blue);    
+}
+
+void BlaueLedAus()
+{
+    bertl.BlueLedsOFF();    
+}
+
+void BlaueLedAn()
+{
+    bertl.BlueLedsON();    
+}
+
+bool WarteBisButtonGedruecktWird()
+{
+    if(bertl.WaitUntilButtonPressed())
+    {
+        return true;
+    } else {
+        return false;
+    }
+}
+
+bool VorneFrei()
+{
+    if(bertl.FrontIsClear())
+    {
+        return true;
+    } else {
+        return false;
+    }
+}
+
+bool NacheVonStreifen()
+{
+    if(bertl.NextToABeeper())
+    {
+        return true;
+    } else {
+        return false;
+    }
+}
+
+bool IstKnopfGedrueckt(const int btn)
+{
+    if(bertl.IsButtonPressed(btn))
+    {
+        return true;
+    } else {
+        return false;
+    }
+}
+
+int ZurueckZuKnopfGedrueckt()
+{
+    if(bertl.ReturnButtonPressed())
+    {
+        return true;
+    } else {
+        return false;
+    }
+}
+
+int main()
+{
+    
+}
+
+
+
+ 
+
+
+
+ 
diff -r 000000000000 -r af676e438648 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Dec 21 14:31:18 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/4336505e4b1c
\ No newline at end of file