Omerovic Mirza, Keco Armin

Dependencies:   mbed

Revision:
0:bbbfc2178bf3
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Mar 10 15:57:48 2014 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+
+BusOut myleds (dp23, dp24, dp25, dp26, dp27, dp5, dp6, dp28);
+DigitalOut enable (dp14);
+DigitalIn taster1 (dp1);
+int main() {
+    enable = 0;
+    int x = 0;
+    myleds = x;
+    while(1) {
+        myleds = (x + 1) % 256;
+        wait (1);
+        if (taster1 == 1) x--; 
+        else x++;
+
+    }
+}
\ No newline at end of file