Dependencies:   mbed

Revision:
0:ed75e2af5e76
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Oct 03 12:34:02 2017 +0000
@@ -0,0 +1,22 @@
+#include "mbed.h"
+
+BusOut ledNS(p5, p6, p7);  // Grønn, Gul , Rød
+BusOut ledOV(p8, p9, p10); // Grønn, Gul , Rød
+
+int lysNS[8] = {4,4,4,6,1,2,4,4};
+int lysOV[8] = {1,2,4,4,4,4,4,6};
+float ventetid[8] = {5,2,1,0.5,5,2,1,0.5};
+    
+int index = 0;
+
+int main() {
+      while(1){
+       for(index = 0; index < 8; index++)
+            {
+            ledNS = lysNS[index];
+            ledOV = lysOV[index];
+            wait(ventetid[index]);
+            }//for
+            index = 0;
+        }
+}