Page 18 - Trabajo final
P. 18
int fim2=2;
int fim3=3;
int fim4=4;
int fim5=5;
int fim6=6;
void setup()
{
pinMode(fim1, OUTPUT);
pinMode(fim2, OUTPUT);
pinMode(fim3, OUTPUT);
pinMode(fim4, OUTPUT);
pinMode(fim5, OUTPUT);
pinMode(fim6, OUTPUT);
}
void loop()
{
//fila 1 encendida y 6//
digitalWrite(fim1, HIGH);
digitalWrite(fim6, HIGH);
digitalWrite(fim2, LOW);
digitalWrite(fim3, LOW);
digitalWrite(fim4, LOW);
digitalWrite(fim5, LOW);
delay(2000);
//Fila 2 encendida y 5//
digitalWrite(fim2, HIGH);
digitalWrite(fim5, HIGH);