Real Time Lab Program

Dependencies:   mbed

Revision:
0:569757d5ecc1
diff -r 000000000000 -r 569757d5ecc1 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Jan 25 16:25:50 2015 +0000
@@ -0,0 +1,25 @@
+#include "mbed.h"
+
+DigitalOut A(p21);
+DigitalOut B(p22);
+DigitalOut C(p23);
+DigitalOut D(p24);
+DigitalOut E(p25);
+
+int main() {
+
+    while(1) {
+        A=1;   
+        B=0;
+        C=1; 
+        D=0;
+        E=0;
+        wait(0.5);
+        A=0;
+        B=1;
+        C=0;
+        D=1;
+        E=1;
+        wait(0.5);
+    }
+}