#define LED 2

void setup() {
  pinMode(2, OUTPUT);
  pinMode(4, OUTPUT);
  pinMode(5, OUTPUT);
  pinMode(18, OUTPUT);
  pinMode(19, OUTPUT);
  pinMode(21, OUTPUT);
  pinMode(22, OUTPUT);
  pinMode(23, OUTPUT);
  
}

void loop() {
  digitalWrite(2, HIGH);
  delay(500);
  digitalWrite(2, LOW);
  delay(500);
  digitalWrite(4, HIGH);
  delay(250);
  digitalWrite(4, LOW);
  delay(250);
  digitalWrite(5, HIGH);
  delay(250);
  digitalWrite(5, LOW);
  delay(250);
  digitalWrite(18,HIGH);
  delay(250);
  digitalWrite(18, LOW);
  delay(250);
  digitalWrite(19, HIGH);
  delay(250);
  digitalWrite(19, LOW);
  delay(250);
  digitalWrite(21, HIGH);
  delay(250);
  digitalWrite(21, LOW);
  delay(250);
  digitalWrite(22, HIGH);
  delay(250);
  digitalWrite(22, LOW);
  delay(250);
  digitalWrite(23, HIGH);
  delay(250);
  digitalWrite(23, LOW);
  delay(250);

  //mode 2
  digitalWrite(2, HIGH);
  delay(250);
  digitalWrite(2, HIGH);
  delay(250);
  digitalWrite(4, HIGH);
  delay(250);
  digitalWrite(4, HIGH);
  delay(250);
  digitalWrite(5, LOW);
  delay(250);
  digitalWrite(5, LOW);
  delay(250);
  digitalWrite(18, LOW);
  delay(250);
  digitalWrite(18, LOW);
  delay(250);
  digitalWrite(19, HIGH);
  delay(250);
  digitalWrite(19, HIGH);
  delay(250);
  digitalWrite(21, HIGH);
  delay(250);
  digitalWrite(21, HIGH);
  delay(250);
  digitalWrite(22, LOW);
  delay(250);
  digitalWrite(22, LOW);
  delay(250);
  digitalWrite(23, LOW);
  delay(250);
  digitalWrite(23, LOW);
  delay(250);

  // mode 3
  digitalWrite(2, HIGH);
  delay(250);
  digitalWrite(2, HIGH);
  delay(250);
  digitalWrite(4, HIGH);
  delay(250);
  digitalWrite(4, HIGH);
  delay(250);
  digitalWrite(5, LOW);
  delay(250);
  digitalWrite(5, LOW);
  delay(250);
  digitalWrite(18, LOW);
  delay(250);
  digitalWrite(18, LOW);
  delay(250);
  digitalWrite(19, LOW);
  delay(250);
  digitalWrite(19, LOW);
  delay(250);
  digitalWrite(21, LOW);
  delay(250);
  digitalWrite(21, LOW);
  delay(250);
  digitalWrite(22, HIGH);
  delay(250);
  digitalWrite(22, HIGH);
  delay(250);
  digitalWrite(23, HIGH);
  delay(250);
  digitalWrite(23, HIGH);
  delay(250);

//mode4
digitalWrite(2, HIGH);
delay(250);
digitalWrite(2, HIGH);
delay(250);
digitalWrite(4, LOW);
delay(250);
digitalWrite(4, LOW);
delay(250);
digitalWrite(5, HIGH);
delay(250);
digitalWrite(5, HIGH);
delay(250);
digitalWrite(18, LOW);
delay(250);
digitalWrite(18, LOW);
delay(250);
digitalWrite(19, HIGH);
delay(250);
digitalWrite(19, HIGH);
delay(25);
digitalWrite(21, LOW);
delay(250);
digitalWrite(21, LOW);
delay(250);
digitalWrite(22, HIGH);
delay(250);
digitalWrite(22, HIGH);
delay(250);
digitalWrite(23, LOW);
delay(250);
digitalWrite(23, LOW);
delay(250);

//mode5
digitalWrite(2, HIGH);
digitalWrite(4, HIGH);
digitalWrite(5, HIGH);
digitalWrite(18, HIGH);
delay(250);
digitalWrite(19, LOW);
digitalWrite(21, LOW);
digitalWrite(22, LOW);
digitalWrite(23, LOW);
delay(250);
digitalWrite(2, LOW);
digitalWrite(4, LOW);
digitalWrite(5, LOW);
digitalWrite(18, LOW);
delay(250);
digitalWrite(19, HIGH);
digitalWrite(21, HIGH);
digitalWrite(22, HIGH);
digitalWrite(23, HIGH);
delay(250);

}