Eigene Funktionen

Dependencies:   EigeneFunktionen mbed

Files at this revision

API Documentation at this revision

Comitter:
Ronja_Naderi
Date:
Mon Dec 21 14:33:31 2015 +0000
Commit message:
Bertl eigene Funktion

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 98f873b24336 Bertl.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Bertl.lib	Mon Dec 21 14:33:31 2015 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/users/Ronja_Naderi/code/EigeneFunktionen/#a317c6d6f570
diff -r 000000000000 -r 98f873b24336 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Dec 21 14:33:31 2015 +0000
@@ -0,0 +1,96 @@
+#include "mbed.h"
+#include "const.h"
+#include "Robot.h"
+#include "ur_Bertl.h"
+
+Robot bertl;
+
+void Bewegen()
+{
+    bertl.Move();
+    
+}
+
+
+void Links()
+{
+    bertl.TurnLeft();
+    
+}
+
+
+
+void NibbleLichter(int value)
+{
+    
+    bertl.NibbleLeds(value);
+    
+}
+
+
+void LichterAN(int16_t led)
+
+{
+    bertl.TurnLedOn(led);
+    
+}
+
+
+
+
+void LichterAUS(int16_t led)
+
+{
+    bertl.TurnLedOff(led);
+    
+}
+
+
+
+
+void RGBLichter (bool rot, bool gruen, bool blau)
+{
+    
+    bertl.RGBLed(rot,gruen,blau);
+    
+}
+
+void BlauAN()
+
+    {
+    bertl.BlueLedsON();
+    
+    
+    }
+
+void BlauAus()
+
+    {
+         bertl.BlueLedsOFF();
+    }
+
+bool SchwarzeLinie(bool ein)
+
+{
+
+ return bertl.NextToABeeper();
+
+
+
+}
+    
+int main() 
+{
+   while(1)
+   
+   {
+       if(bertl.IsButtonPressed(BTN_BL))
+         {
+            BlauAN(); 
+        }
+            
+       
+        
+            
+     }
+}
diff -r 000000000000 -r 98f873b24336 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Dec 21 14:33:31 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/165afa46840b
\ No newline at end of file