sensor color con joystick y motores paso a paso mas pantalla LCD

Dependencies:   mbed

Revision:
7:5f332f47b38f
Parent:
6:35c069133c9a
Child:
8:a4fb8f46fc00
--- a/main.cpp	Tue Apr 23 12:31:35 2019 +0000
+++ b/main.cpp	Tue Apr 23 14:33:50 2019 +0000
@@ -472,7 +472,7 @@
                     In [ 1 ] = analog_value1.read(); // Converts and read the analog input value (value from 0.0 to 1.0)    
                     //printf(" X = %.04f \n", In[0]); 
                                 
-                    if (In [ 1 ] > 0.5 ){
+                    if (In [ 1 ] > 0.6 ){
                      
                         steppeer_dir = 1 ;
                         steppeer_dir2 = 0 ;
@@ -490,7 +490,7 @@
                         } 
                     }
                 
-                    if ( In [ 1 ] < 0.5 ){
+                    if ( In [ 1 ] < 0.6 ){
                      
                         steppeer_dir = 0 ;
                         steppeer_dir2 = 1 ;
@@ -509,7 +509,7 @@
                     
                     }
                     
-                    wait(1);
+                    wait_us ( 1 );
                     if ( command.readable () == 1 ){
                     
                         leer_datos();