test

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
laik777
Date:
Mon Dec 10 14:34:16 2018 +0000
Parent:
0:43c630791109
Child:
2:549286fb28d4
Commit message:
pwm set;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Dec 10 14:22:31 2018 +0000
+++ b/main.cpp	Mon Dec 10 14:34:16 2018 +0000
@@ -87,7 +87,14 @@
         myled_green  = OFF;
         myled_red  = OFF;
         
-        if(start2 == 0)
+        if(start1 == 0)
+        {
+            myled_blue  = ON;
+            merjenjeTokaInNapetosti();
+            wait(2);          
+        }
+        
+        else if(start2 == 0)
         {
             myled_green  = ON;
             printf ("\r\n");
@@ -137,13 +144,6 @@
             wait(2);
             myled_green  = OFF;   
         }
-        
-        else if(start1 == 0)
-        {
-            myled_blue  = ON;
-            merjenjeTokaInNapetosti();
-            wait(2);          
-        }
                 
         else if(start3 == 0)
         {