void setup ()
{
pinmode(11,output);
serial.begin(9600);
pinmode(le_butlin,output);
}
void loop()
{
int sensor=analogread(a5);
int sensor2=analogread(a4);
int cont=0;
int v;
if(sensor<25)
v=-1;
else
if(sensor2<25)
v=1;
cont=cont+v;
if(cont>0)
digitalwrite(11,high);
if(cont=<0)
digitalwrite(11,low);
}
Looks good to me with the exception of
- where do you declare your variables?
- why did you not use code tags
- what's it supposed to do?
Es el 2do post similar que encuentro tuyo, tagualba y creo que por 2da vez lo has posteado en el foro en ingles.
NO postees mas!!
Lee las normas y se paciente!!
Usa tags!!
Hilo cerrado o borrado por doble post.