Blinken, Disco

Dependencies:   mbed

Revision:
0:e06a31d8bdb1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/blinken.cpp	Fri Apr 24 09:10:13 2015 +0000
@@ -0,0 +1,32 @@
+#include "ur_Bertl.h"
+#include "mbed.h"
+#include "const.h"
+#include "blinken.h"
+
+void blink_Bertl :: Blink()
+{
+    int x = 0;
+    while(FrontIsClear())
+    {
+        RGBLed(1,0,0);
+        RGBLed(0,1,0);        
+        RGBLed(0,0,1);
+        RGBLed(1,1,0);        
+        RGBLed(0,1,1);      
+        RGBLed(1,0,1);        
+        TurnLedOn(LED_ALL);        
+        TurnLedOn(LED_FL1);        
+        TurnLedOn(LED_FL2);        
+        TurnLedOn(LED_FR1);        
+        TurnLedOn(LED_FR2);        
+        TurnLedOn(LED_ALL_FRONT);        
+        TurnLedOn(LED_BL1);        
+        TurnLedOn(LED_BL2);       
+        TurnLedOn(LED_BR1);        
+        TurnLedOn(LED_BR2);        
+        TurnLedOff(LED_ALL);       
+        TurnLedOn(LED_ALL_BACK);
+        NibbleLeds(x);
+        x++;
+    }
+}
\ No newline at end of file