void setup() {
  pinMode(2,OUTPUT);
  pinMode(3,OUTPUT);
  pinMode(4,OUTPUT);
  pinMode(5,OUTPUT);
  pinMode(6,OUTPUT);
}

void loop() {
  // arriba a abajo
  for(int pin = 2; pin < 7; pin = pin +1 ){
    digitalWrite(pin, HIGH); 
    delay(100);
    digitalWrite(pin, LOW);
    delay(100);      
  }
// ENCIENDEN TODOS
for(int pin = 2; pin < 7; pin = pin +1 ){
    digitalWrite(pin, HIGH); 
  }
  delay(500);
  for(int pin = 2; pin < 7; pin = pin +1 ){
    digitalWrite(pin, LOW);
  }
  delay(500); 
  
  //abajo a arriba
  for(int pin = 7; pin > 1; pin = pin - 1 ){
    digitalWrite(pin, HIGH); 
    delay(100);
    digitalWrite(pin, LOW);
    delay(100); 
  }
}