Funktionen

Dependencies:   Bertl mbed

Files at this revision

API Documentation at this revision

Comitter:
FlorianMaier
Date:
Mon Dec 21 15:26:38 2015 +0000
Commit message:
Funktionen

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 9a6ac02a0f65 Bertl.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Bertl.lib	Mon Dec 21 15:26:38 2015 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/users/fpucher/code/Bertl/#308802267a62
diff -r 000000000000 -r 9a6ac02a0f65 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Dec 21 15:26:38 2015 +0000
@@ -0,0 +1,90 @@
+#include "mbed.h"
+#include "const.h"
+#include "Robot.h"
+
+Robot bertl;
+
+void bewegen()
+{
+     bertl.Move();    
+}
+
+void links()
+{
+    bertl.TurnLeft();    
+}
+
+void LedKette(int value)
+{
+    bertl.NibbleLeds(value);
+}
+
+
+void LedsOn(int16_t led)
+{
+    bertl.TurnLedOn(led);    
+}
+
+void LedsOff(int16_t led)
+{
+    bertl.TurnLedOff(led);    
+}
+
+void RGBLed(bool red, bool green, bool blue)
+{
+    bertl.RGBLed(red,  green, blue);    
+}
+
+void BlueLedsOn()
+{
+    bertl.BlueLedsON();
+}
+
+
+void BlueLedsOff()
+{
+    BlueLedsOff();
+}
+
+bool Frei()
+{
+    if (bertl.FrontIsClear())
+        return true;
+        
+    else
+        return false ;   
+}
+
+
+
+
+
+bool gedrueckt()
+{
+    if (bertl.WaitUntilButtonPressed())
+        return true;
+    else
+        return false;
+}
+
+bool streifen()
+{
+    if(bertl.NextToABeeper())
+        return true;
+    else    
+        return false;    
+}
+
+bool pressed(const int btn)
+{
+    if(bertl.IsButtonPressed(btn))
+        return true;
+    else
+        return false;
+}
+
+
+int main() 
+{
+       
+}
diff -r 000000000000 -r 9a6ac02a0f65 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Dec 21 15:26:38 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/4336505e4b1c
\ No newline at end of file