Admira Husić Vejsil Hrustić

Dependencies:   mbed

Revision:
0:1699bc725e0f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Mar 05 18:28:39 2015 +0000
@@ -0,0 +1,31 @@
+#include "mbed.h"
+
+DigitalOut myled1(LED1);
+DigitalOut myled2(LED2);
+DigitalOut myled3(LED3);
+
+int main() {
+    myled1=1;
+    myled2=1;
+    myled3=1;
+    
+    float vrijeme=1;
+    float x=0.1;
+    
+    
+    while(1) {
+        myled1=0;
+        wait(vrijeme);
+      myled1=1;
+        myled2=0;
+        wait(vrijeme);
+  myled2=1;
+        myled3=0;
+        wait(vrijeme);
+        myled3=1;
+        if(vrijeme<=0.1) x=0;
+        vrijeme-=x;
+      
+       
+       }
+}