const int LP1[] = {1, 2, 3};
const int LP2[] = {4, 5, 6};
const int LP3[] = {7, 8, 9};

void setup() {
  // put your setup code here, to run once:
  for(int i=0; i<3; i++){
    pinMode(LP1[i], OUTPUT);
    pinMode(LP2[i], OUTPUT);
    pinMode(LP3[i], OUTPUT);
  }
  for(int i=0; i<3; i++){
    digitalWrite(LP1[i], LOW);
    digitalWrite(LP2[i], LOW);
    digitalWrite(LP3[i], LOW);
    }
}

void loop() {
  // put your main code here, to run repeatedly:
  digitalWrite(LP1[2], HIGH);
  digitalWrite(LP2[0], HIGH);
  digitalWrite(LP3[0], HIGH);
  delay(7000);
  digitalWrite(LP1[1], HIGH);
  digitalWrite(LP2[1], HIGH);
  delay(3000);
  digitalWrite(LP1[2], LOW);
  digitalWrite(LP2[0], LOW);
  digitalWrite(LP1[1], LOW);
  digitalWrite(LP2[1], LOW);
  digitalWrite(LP1[0], HIGH);
  digitalWrite(LP2[2], HIGH);
  delay(7000);
   digitalWrite(LP2[1], HIGH);
  digitalWrite(LP3[1], HIGH);
  delay(3000);
  digitalWrite(LP2[2], LOW);
  digitalWrite(LP3[0], LOW);
  digitalWrite(LP2[1], LOW);
  digitalWrite(LP3[1], LOW);
  digitalWrite(LP2[0], HIGH);
  digitalWrite(LP3[2], HIGH);
  delay(7000);
  digitalWrite(LP3[1], HIGH);
  digitalWrite(LP1[1], HIGH);
  delay(3000);
  digitalWrite(LP3[2], LOW);
  digitalWrite(LP1[0], LOW);
  digitalWrite(LP3[1], LOW);
  digitalWrite(LP1[1], LOW);
}