prvi prij

Dependencies:   mbed

Fork of mbed_blinky by Mbed

Files at this revision

API Documentation at this revision

Comitter:
rajko
Date:
Tue Nov 07 10:02:45 2017 +0000
Parent:
18:1fe1cb83472f
Commit message:
prvi proj

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Oct 12 04:41:05 2017 +0000
+++ b/main.cpp	Tue Nov 07 10:02:45 2017 +0000
@@ -1,12 +1,18 @@
 #include "mbed.h"
 
-DigitalOut myled(LED1);
+DigitalOut myled1(LED1);
+DigitalOut myled2(LED2);
 
 int main() {
     while(1) {
-        myled = 1;
+        myled1 = 1;
+        wait(0.2);
+        myled1 = 0;
         wait(0.2);
-        myled = 0;
-        wait(0.2);
+        
+        myled2 = 1;
+        wait(1);
+        myled2 = 0;
+        wait(1);
     }
 }