Page 59 - Proyecto
P. 59
void loop()
//X//
{
digitalWrite(ld0, HIGH);
digitalWrite(ld1, LOW);
digitalWrite(ld2, HIGH);
digitalWrite(ld3, LOW);
digitalWrite(ld4, HIGH);
digitalWrite(ld5, LOW);
digitalWrite(ld6, HIGH);
digitalWrite(ld7, LOW);
digitalWrite(ld8, HIGH);
delay(5000);
//Z
digitalWrite(ld0, HIGH);
digitalWrite(ld1, HIGH);
digitalWrite(ld2, HIGH);
digitalWrite(ld3, LOW);
digitalWrite(ld4, HIGH);
digitalWrite(ld5, LOW);
digitalWrite(ld6, HIGH);
digitalWrite(ld7, HIGH);
digitalWrite(ld8, HIGH);
delay(5000);
//Y
digitalWrite(ld0, HIGH);
digitalWrite(ld1, LOW);
digitalWrite(ld2, HIGH);
digitalWrite(ld3, LOW);
digitalWrite(ld4, HIGH);
digitalWrite(ld5, LOW);
digitalWrite(ld6, HIGH);
digitalWrite(ld7, LOW);
digitalWrite(ld8, LOW);
delay(5000);
54