Admira Husić Vejsil Hrustić

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
pai2015admirahusic
Date:
Thu Mar 05 18:28:39 2015 +0000
Commit message:
LV1_Grupa6_Tim007

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 1699bc725e0f main.cpp
--- /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;
+      
+       
+       }
+}
diff -r 000000000000 -r 1699bc725e0f mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Mar 05 18:28:39 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/7e07b6fb45cf
\ No newline at end of file