Blinken, Disco

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
fritzhausmann
Date:
Fri Apr 24 09:10:13 2015 +0000
Commit message:
Blinken, Disco

Changed in this revision

blinken.cpp Show annotated file Show diff for this revision Revisions of this file
blinken.h 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
ur_Bertl.lib Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r e06a31d8bdb1 blinken.cpp
--- /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
diff -r 000000000000 -r e06a31d8bdb1 blinken.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/blinken.h	Fri Apr 24 09:10:13 2015 +0000
@@ -0,0 +1,9 @@
+#include "ur_Bertl.h"
+#include "mbed.h"
+#include "const.h"
+
+class blink_Bertl : public ur_Bertl
+{
+    public:
+    void Blink();
+};
\ No newline at end of file
diff -r 000000000000 -r e06a31d8bdb1 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Apr 24 09:10:13 2015 +0000
@@ -0,0 +1,11 @@
+#include "ur_Bertl.h"
+#include "mbed.h"
+#include "const.h"
+#include "blinken.h"
+
+int main()
+{
+    blink_Bertl karel;
+    
+    karel.Blink();
+}
\ No newline at end of file
diff -r 000000000000 -r e06a31d8bdb1 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Apr 24 09:10:13 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/433970e64889
\ No newline at end of file
diff -r 000000000000 -r e06a31d8bdb1 ur_Bertl.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ur_Bertl.lib	Fri Apr 24 09:10:13 2015 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/teams/BERTL_CHEL_18/code/ur_Bertl/#207a1e646191