Page 123 - PROYECTO INTEGRADOR
P. 123
}
void loop()
{
pot= analogRead(A5);
if(pot < 1) {
digitalWrite(12,LOW);
digitalWrite(11,LOW);
digitalWrite(10,LOW);
digitalWrite(9,LOW);
}
if(pot > 0 && pot <=245 ){
digitalWrite(12,HIGH);
digitalWrite(11,LOW);
digitalWrite(9,LOW);
digitalWrite(10,LOW);
lcd.setCursor(2,0);
lcd.print("GRUPO 1");
delay(500);
lcd.clear();
}
if(pot > 245 && pot <=695 ){