Lejla Agić Pajić Enil

Dependencies:   mbed

Revision:
0:ff2a62b05963
diff -r 000000000000 -r ff2a62b05963 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Mar 10 07:41:45 2014 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+
+BusOut l (dp23, dp24, dp25, dp26, dp27, dp5, dp6, dp28);
+DigitalOut e (dp14);
+DigitalIn s (dp1);
+int main() {
+    e = 0;
+    int x = 0;
+    l = x;
+    while(1) {
+        l = (x + 1) % 256;
+        wait (1.0);
+        if (s == 1) x--; 
+        else x++;
+    }
+}