tim004 tim004 / Mbed 2 deprecated LV1_PAI_Grupa4_Tim004_Zadatak3

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
tim004
Date:
Mon Mar 03 18:01:59 2014 +0000
Commit message:
LV1-PAI-Grupa 4-Tim004

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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Mar 03 18:01:59 2014 +0000
@@ -0,0 +1,33 @@
+#include "mbed.h"
+
+DigitalOut myled1(LED1);
+
+DigitalOut myled2(LED2);
+
+DigitalOut myled3(LED3);
+
+int main() {
+    double x=1;
+    myled2 = 1;
+        myled3 = 1;
+    while(1) {
+
+        myled1 = 0;
+              wait(x); 
+        myled1 = 1;
+
+
+        myled2 = 0;
+ wait(x);
+        myled2 = 1;
+     
+         
+        myled3 = 0;
+         wait(x);
+         myled3 = 1;
+     
+         if (x>=0.2){
+                x=x-0.1;
+             }
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Mar 03 18:01:59 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/8e73be2a2ac1
\ No newline at end of file