3.1.4

Dependencies:   mbed

Revision:
0:9a3f60b3424e
diff -r 000000000000 -r 9a3f60b3424e main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Sep 12 11:10:04 2017 +0000
@@ -0,0 +1,34 @@
+#include "mbed.h"
+Serial pc(USBTX, USBRX);
+BusOut teller(p21, p22, p23, p24, p25, p26);
+DigitalOut bryter(p20);
+
+int main()
+{
+    while(1) {
+        if (bryter == 0) {
+            for(int x = 0; x <= 15; x++) {
+                teller = x;
+                wait(0.1);
+                if (x == 15) {
+                    for(int x = 15; x > 0; x--) {
+                        teller = x;
+                        wait(0.1);
+                    }
+                }
+            }
+        }
+        if (bryter == 1) {
+            for(int x = 0; x <= 63; x++) {
+                teller = x;
+                wait(0.1);
+                if (x == 63) {
+                    for(int x = 63; x > 0; x--) {
+                        teller = x;
+                        wait(0.1);
+                    }
+                }
+            }
+        }
+    }
+}
\ No newline at end of file