RGB

Dependencies:   mbed

Fork of RGB-15 by Ladner-Praja

Revision:
3:2cd73b6f5b50
Parent:
2:1317061163f8
Child:
4:0c35562c35a4
diff -r 1317061163f8 -r 2cd73b6f5b50 main.cpp
--- a/main.cpp	Tue Jul 07 20:51:37 2015 +0000
+++ b/main.cpp	Tue Jul 07 20:56:32 2015 +0000
@@ -78,7 +78,7 @@
         {
             enable = 1;
             online = 1;
-            myrgb=4;
+            myrgb=3;
             wait(0.5);
         }
         else
@@ -89,13 +89,13 @@
             {
                 enable = 1;
                 online = 1;
-                if(myline>0||linecenter>0)
+                if(myline<16||linecenter<1)
                 {
                     active=1;
                     myrgb=6;
                 }
                 else
-                    myrgb=3;
+                    myrgb=4;
                 waiting=0;
                 wait(0.5);
                 enable = 0;