Page 66 - Trabajo final
P. 66
digitalWrite(verde, HIGH);
digitalWrite(azul, LOW);
digitalWrite(amarillo, LOW);
digitalWrite(buzzer, LOW);
noTone(11);
lcd.setCursor(6,0);
lcd.print("VERDE");
delay(2000);
lcd.clear();
}
if(d>50 && d<100)
{
digitalWrite(azul, HIGH);
digitalWrite(amarillo, LOW);
digitalWrite(verde, LOW);
digitalWrite(buzzer, LOW);
noTone(11);
lcd.setCursor(3,1);
lcd.print("AZUL");
delay(2000);
lcd.clear();
}
if(d<150 && d>100)
{
digitalWrite(verde, LOW);