Page 122 - Proyecto
P. 122
else
if(tecla_presionada=='B')
{
digitalWrite(ld2, HIGH);
delay(1);
digitalWrite(ld4, LOW);
digitalWrite(ld3, LOW);
digitalWrite(ld1, LOW);
}
else if(tecla_presionada=='C')
{
digitalWrite(ld3, HIGH);
delay(1);
digitalWrite(ld4, LOW);
digitalWrite(ld2, LOW);
digitalWrite(ld1, LOW);
}
else if(tecla_presionada=='D')
{
digitalWrite(ld4, HIGH);
delay(1);
digitalWrite(ld3, LOW);
digitalWrite(ld2, LOW);
digitalWrite(ld1, LOW);
}
}
117