RGB

Dependencies:   mbed

Fork of RGB-15 by Ladner-Praja

Revision:
4:0c35562c35a4
Parent:
3:2cd73b6f5b50
Child:
5:e968c184ad9f
diff -r 2cd73b6f5b50 -r 0c35562c35a4 main.cpp
--- a/main.cpp	Tue Jul 07 20:56:32 2015 +0000
+++ b/main.cpp	Tue Jul 07 21:03:25 2015 +0000
@@ -89,7 +89,7 @@
             {
                 enable = 1;
                 online = 1;
-                if(myline<16||linecenter<1)
+                if(myline<15||linecenter<1)
                 {
                     active=1;
                     myrgb=6;
@@ -97,12 +97,12 @@
                 else
                     myrgb=4;
                 waiting=0;
-                wait(0.5);
-                enable = 0;
-                online = 0;
-                myrgb=7;
             }
+            wait(0.5);
             myled=out_helper[waiting];
+            enable = 0;
+            online = 0;
+            myrgb=7;
         }
         //0=>keine Linie