Eigene Funktionen

Dependencies:   EigeneFunktionen mbed

Revision:
0:98f873b24336
--- /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(); 
+        }
+            
+       
+        
+            
+     }
+}