Thursday, July 16, 2015

8 Channel Christmas Light Display / Arduino UNO

Code


void setup() {


  pinMode(4, OUTPUT);  //  Roof 1
  pinMode(5, OUTPUT);  //  Roof 2
  pinMode(6, OUTPUT);  //  Bushes 1
  pinMode(7, OUTPUT);  //  Bushes 2
  pinMode(8, OUTPUT);  //  Bushes 3
  pinMode(9, OUTPUT);  //  Yard 1
  pinMode(10, OUTPUT);  //  Yard 2
 pinMode(11, OUTPUT);  //  Rain Dear
}

void loop() {
  digitalWrite(4, HIGH);   // Roof 1 on
  delay(300);          
  digitalWrite(4,  LOW);  
  delay(50);            
  digitalWrite(5, HIGH);
  delay(300);            
  digitalWrite(5,  LOW);  
  delay(50);          
  digitalWrite(6, HIGH);
  delay(300);          
  digitalWrite(6,  LOW);
  delay(50);            
  digitalWrite(7, HIGH);
  delay(300);            
  digitalWrite(7,  LOW);  
  delay(50);
  digitalWrite(8, HIGH);
  delay(300);            
  digitalWrite(8,  LOW);  
  delay(50);
  digitalWrite(9, HIGH);
  delay(300);            
  digitalWrite(9,  LOW);  
  delay(50);
  digitalWrite(10, HIGH);
  delay(300);            
  digitalWrite(10,  LOW);  
  delay(50);
  digitalWrite(11, HIGH);
  delay(300);            
  digitalWrite(11,  LOW);  
  delay(50);
  digitalWrite(4, HIGH);   // Roof 1 on
  delay(300);          
  digitalWrite(4,  LOW);  
  delay(50);            
  digitalWrite(5, HIGH);
  delay(300);            
  digitalWrite(5,  LOW);  
  delay(50);          
  digitalWrite(6, HIGH);
  delay(300);          
  digitalWrite(6,  LOW);
  delay(50);            
  digitalWrite(7, HIGH);
  delay(300);            
  digitalWrite(7,  LOW);  
  delay(50);
  digitalWrite(8, HIGH);
  delay(300);            
  digitalWrite(8,  LOW);  
  delay(50);
  digitalWrite(9, HIGH);
  delay(300);            
  digitalWrite(9,  LOW);  
  delay(50);
  digitalWrite(10, HIGH);
  delay(300);            
  digitalWrite(10,  LOW);  
  delay(50);
  digitalWrite(11, HIGH);
  delay(300);            
  digitalWrite(11,  LOW);  
  delay(50);
  digitalWrite(4, HIGH);   // Roof 1 on
  delay(300);          
  digitalWrite(4,  LOW);  
  delay(50);            
  digitalWrite(5, HIGH);
  delay(300);            
  digitalWrite(5,  LOW);  
  delay(50);          
  digitalWrite(6, HIGH);
  delay(300);          
  digitalWrite(6,  LOW);
  delay(50);            
  digitalWrite(7, HIGH);
  delay(300);            
  digitalWrite(7,  LOW);  
  delay(50);
  digitalWrite(8, HIGH);
  delay(300);            
  digitalWrite(8,  LOW);  
  delay(50);
  digitalWrite(9, HIGH);
  delay(300);            
  digitalWrite(9,  LOW);  
  delay(50);
  digitalWrite(10, HIGH);
  delay(300);            
  digitalWrite(10,  LOW);  
  delay(50);
  digitalWrite(11, HIGH);
  delay(300);            
  digitalWrite(11,  LOW);  
  delay(50);
  digitalWrite(4, HIGH);   // Roof 1 on
  delay(300);          
  digitalWrite(4,  LOW);  
  delay(50);            
  digitalWrite(5, HIGH);
  delay(300);            
  digitalWrite(5,  LOW);  
  delay(50);          
  digitalWrite(6, HIGH);
  delay(300);          
  digitalWrite(6,  LOW);
  delay(50);            
  digitalWrite(7, HIGH);
  delay(300);            
  digitalWrite(7,  LOW);  
  delay(50);
  digitalWrite(8, HIGH);
  delay(300);            
  digitalWrite(8,  LOW);  
  delay(50);
  digitalWrite(9, HIGH);
  delay(300);            
  digitalWrite(9,  LOW);  
  delay(50);
  digitalWrite(10, HIGH);
  delay(300);            
  digitalWrite(10,  LOW);  
  delay(50);
  digitalWrite(11, HIGH);
  delay(300);            
  digitalWrite(11,  LOW);  
  delay(50);
  digitalWrite(4, HIGH);   // Roof 1 on
  delay(300);          
  digitalWrite(4,  LOW);  
  delay(50);            
  digitalWrite(5, HIGH);
  delay(300);            
  digitalWrite(5,  LOW);  
  delay(50);          
  digitalWrite(6, HIGH);
  delay(300);          
  digitalWrite(6,  LOW);
  delay(50);            
  digitalWrite(7, HIGH);
  delay(300);            
  digitalWrite(7,  LOW);  
  delay(50);
  digitalWrite(8, HIGH);
  delay(300);            
  digitalWrite(8,  LOW);  
  delay(50);
  digitalWrite(9, HIGH);
  delay(300);            
  digitalWrite(9,  LOW);  
  delay(50);
  digitalWrite(10, HIGH);
  delay(300);            
  digitalWrite(10,  LOW);  
  delay(50);
  digitalWrite(11, HIGH);
  delay(300);            
  digitalWrite(11,  LOW);  
  delay(50);


  digitalWrite(4, HIGH);  // Everyting Blinking
  delay(100);            
  digitalWrite(4,  LOW);  
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);            
  digitalWrite(5,  LOW);  
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);          
  digitalWrite(6,  LOW);  
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);            
  digitalWrite(7,  LOW);  
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);            
  digitalWrite(8,  LOW);  
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);            
  digitalWrite(9,  LOW);  
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);            
  digitalWrite(10,  LOW);  
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);            
  digitalWrite(11,  LOW);  
  delay(100);

  digitalWrite(4, HIGH);  // Everyting Blinking
  delay(100);            
  digitalWrite(4,  LOW);  
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);            
  digitalWrite(5,  LOW);  
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);          
  digitalWrite(6,  LOW);  
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);            
  digitalWrite(7,  LOW);  
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);            
  digitalWrite(8,  LOW);  
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);            
  digitalWrite(9,  LOW);  
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);            
  digitalWrite(10,  LOW);  
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);            
  digitalWrite(11,  LOW);  
  delay(100);
  digitalWrite(4, HIGH);  // Everyting Blinking
  delay(100);            
  digitalWrite(4,  LOW);  
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);            
  digitalWrite(5,  LOW);  
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);          
  digitalWrite(6,  LOW);  
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);            
  digitalWrite(7,  LOW);  
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);            
  digitalWrite(8,  LOW);  
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);            
  digitalWrite(9,  LOW);  
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);            
  digitalWrite(10,  LOW);  
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);            
  digitalWrite(11,  LOW);  
  delay(100);
  digitalWrite(4, HIGH);  // Everyting Blinking
  delay(100);            
  digitalWrite(4,  LOW);  
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);            
  digitalWrite(5,  LOW);  
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);          
  digitalWrite(6,  LOW);  
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);            
  digitalWrite(7,  LOW);  
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);            
  digitalWrite(8,  LOW);  
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);            
  digitalWrite(9,  LOW);  
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);            
  digitalWrite(10,  LOW);  
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);            
  digitalWrite(11,  LOW);  
  delay(100);
  digitalWrite(4, HIGH);  // Everyting Blinking
  delay(100);            
  digitalWrite(4,  LOW);  
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);            
  digitalWrite(5,  LOW);  
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);          
  digitalWrite(6,  LOW);  
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);            
  digitalWrite(7,  LOW);  
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);            
  digitalWrite(8,  LOW);  
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);            
  digitalWrite(9,  LOW);  
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);            
  digitalWrite(10,  LOW);  
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);            
  digitalWrite(11,  LOW);  
  delay(100);

  digitalWrite(4, HIGH);
  delay(500);            
  digitalWrite(4,  LOW);  
  delay(100);
  digitalWrite(5, HIGH);
  delay(500);            
  digitalWrite(5,  LOW);  
  delay(100);
  digitalWrite(4, HIGH);
  delay(500);            
  digitalWrite(4,  LOW);  
  delay(100);
  digitalWrite(5, HIGH);
  delay(500);            
  digitalWrite(5,  LOW);  
  delay(100);
  digitalWrite(4, HIGH);
  delay(500);            
  digitalWrite(4,  LOW);  
  delay(100);
  digitalWrite(5, HIGH);
  delay(500);            
  digitalWrite(5,  LOW);  
  delay(100);
  digitalWrite(4, HIGH);
  delay(500);            
  digitalWrite(4,  LOW);  
  delay(100);
  digitalWrite(5, HIGH);
  delay(500);            
  digitalWrite(5,  LOW);  
  delay(100);
  digitalWrite(4, HIGH);
  delay(500);            
  digitalWrite(4,  LOW);  
  delay(100);
  digitalWrite(5, HIGH);
  delay(500);            
  digitalWrite(5,  LOW);  
  delay(100);

  digitalWrite(6, HIGH);
  delay(500);            
  digitalWrite(6,  LOW);  
  delay(100);
  digitalWrite(7, HIGH);
  delay(500);            
  digitalWrite(7,  LOW);  
  delay(100);
  digitalWrite(8, HIGH);
  delay(500);            
  digitalWrite(8,  LOW);  
  delay(100);
  digitalWrite(6, HIGH);
  delay(500);            
  digitalWrite(6,  LOW);  
  delay(100);
  digitalWrite(7, HIGH);
  delay(500);            
  digitalWrite(7,  LOW);  
  delay(100);
  digitalWrite(8, HIGH);
  delay(500);            
  digitalWrite(8,  LOW);  
  delay(100);
  digitalWrite(6, HIGH);
  delay(500);            
  digitalWrite(6,  LOW);  
  delay(100);
  digitalWrite(7, HIGH);
  delay(500);            
  digitalWrite(7,  LOW);  
  delay(100);
  digitalWrite(8, HIGH);
  delay(500);            
  digitalWrite(8,  LOW);  
  delay(100);
  digitalWrite(6, HIGH);
  delay(500);            
  digitalWrite(6,  LOW);  
  delay(100);
  digitalWrite(7, HIGH);
  delay(500);            
  digitalWrite(7,  LOW);  
  delay(100);
  digitalWrite(8, HIGH);
  delay(500);            
  digitalWrite(8,  LOW);  
  delay(100);

  digitalWrite(9, HIGH);
  delay(500);            
  digitalWrite(9,  LOW);  
  delay(100);
  digitalWrite(10, HIGH);
  delay(500);            
  digitalWrite(10,  LOW);
  delay(100);
  digitalWrite(9, HIGH);
  delay(500);            
  digitalWrite(9,  LOW);  
  delay(100);
  digitalWrite(10, HIGH);
  delay(500);            
  digitalWrite(10,  LOW);
  delay(100);
  digitalWrite(9, HIGH);
  delay(500);            
  digitalWrite(9,  LOW);  
  delay(100);
  digitalWrite(10, HIGH);
  delay(500);            
  digitalWrite(10,  LOW);
  delay(100);
  digitalWrite(9, HIGH);
  delay(500);            
  digitalWrite(9,  LOW);  
  delay(100);
  digitalWrite(10, HIGH);
  delay(500);            
  digitalWrite(10,  LOW);
  delay(100);

  digitalWrite(11, HIGH);
  delay(100);            
  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(11, HIGH);
  delay(100);            
  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(11, HIGH);
  delay(100);            
  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(11, HIGH);
  delay(100);            
  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(11, HIGH);
  delay(100);            
  digitalWrite(11,  LOW);
  delay(50);

  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);  
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);  
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);  
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);  
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(4,  LOW);
  delay(50);


  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);

  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
 
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);

  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);

  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);

  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);

  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);

  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);

  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);

  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);

  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);

  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);

  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);

  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);

  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);

  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);

  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);


  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);

  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);


  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);


  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);


  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);


  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);

  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);

  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(4,  LOW);
  delay(50);


  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);

  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);

  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);

  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);

  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(4,  LOW);
  delay(50);







  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);


  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);

  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);

  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(4,  LOW);
  delay(50);
 
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);


  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);

  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);

  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(4,  LOW);
  delay(50);
 
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);


  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);

  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);

  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(4,  LOW);
  delay(50);
 
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);


  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);

  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);

  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(4,  LOW);
  delay(50);
 
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);


  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);

  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);

  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(4,  LOW);
  delay(50);
 
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);


  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);

  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);

  digitalWrite(11,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(4,  LOW);
  delay(50);



  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);

  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);

  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);

  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);



  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);

  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);

  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);

  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);

  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);

  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);

  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);

  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);



  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);

  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);

  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);

  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);

  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);

  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);


  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);


  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);

  digitalWrite(4,  HIGH);
  delay(100);
  digitalWrite(4,   LOW);
  delay(100);
   digitalWrite(5,  HIGH);
  delay(100);
  digitalWrite(5,   LOW);
  delay(100);
  digitalWrite(4,  HIGH);
  delay(100);
  digitalWrite(4,   LOW);
  delay(100);
   digitalWrite(5,  HIGH);
  delay(100);
  digitalWrite(5,   LOW);
  delay(100);
  digitalWrite(4,  HIGH);
  delay(100);
  digitalWrite(4,   LOW);
  delay(100);
   digitalWrite(5,  HIGH);
  delay(100);
  digitalWrite(5,   LOW);
  delay(100);
  digitalWrite(4,  HIGH);
  delay(100);
  digitalWrite(4,   LOW);
  delay(100);
   digitalWrite(5,  HIGH);
  delay(100);
  digitalWrite(5,   LOW);
  delay(100);
  digitalWrite(4,  HIGH);
  delay(100);
  digitalWrite(4,   LOW);
  delay(100);
   digitalWrite(5,  HIGH);
  delay(100);
  digitalWrite(5,   LOW);
  delay(100);

  digitalWrite(4,  HIGH);
  delay(100);
  digitalWrite(4,   LOW);
  delay(100);
  digitalWrite(5,  HIGH);
  delay(100);
  digitalWrite(5,   LOW);
  delay(100);
  digitalWrite(9,  HIGH);
  delay(100);
  digitalWrite(9,   LOW);
  delay(100);
  digitalWrite(10,  HIGH);
  delay(100);
  digitalWrite(10,   LOW);
  delay(100);
  digitalWrite(4,  HIGH);
  delay(100);
  digitalWrite(4,   LOW);
  delay(100);
  digitalWrite(5,  HIGH);
  delay(100);
  digitalWrite(5,   LOW);
  delay(100);
  digitalWrite(9,  HIGH);
  delay(100);
  digitalWrite(9,   LOW);
  delay(100);
  digitalWrite(10,  HIGH);
  delay(100);
  digitalWrite(10,   LOW);
  delay(100);
  digitalWrite(4,  HIGH);
  delay(100);
  digitalWrite(4,   LOW);
  delay(100);
  digitalWrite(5,  HIGH);
  delay(100);
  digitalWrite(5,   LOW);
  delay(100);
  digitalWrite(9,  HIGH);
  delay(100);
  digitalWrite(9,   LOW);
  delay(100);
  digitalWrite(10,  HIGH);
  delay(100);
  digitalWrite(10,   LOW);
  delay(100);
  digitalWrite(4,  HIGH);
  delay(100);
  digitalWrite(4,   LOW);
  delay(100);
  digitalWrite(5,  HIGH);
  delay(100);
  digitalWrite(5,   LOW);
  delay(100);
  digitalWrite(9,  HIGH);
  delay(100);
  digitalWrite(9,   LOW);
  delay(100);
  digitalWrite(10,  HIGH);
  delay(100);
  digitalWrite(10,   LOW);
  delay(100);
  digitalWrite(4,  HIGH);
  delay(100);
  digitalWrite(4,   LOW);
  delay(100);
  digitalWrite(5,  HIGH);
  delay(100);
  digitalWrite(5,   LOW);
  delay(100);
  digitalWrite(9,  HIGH);
  delay(100);
  digitalWrite(9,   LOW);
  delay(100);
  digitalWrite(10,  HIGH);
  delay(100);
  digitalWrite(10,   LOW);
  delay(100);

  digitalWrite(4,  HIGH);
  delay(50);
  digitalWrite(4,   LOW);
  delay(10);
  digitalWrite(5,  HIGH);
  delay(50);
  digitalWrite(5,   LOW);
  delay(10);
  digitalWrite(9,  HIGH);
  delay(50);
  digitalWrite(9,   LOW);
  delay(10);
  digitalWrite(10,  HIGH);
  delay(50);
  digitalWrite(10,   LOW);
  delay(10);
                                         


  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);

  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);

  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);


  digitalWrite(4,  LOW);
  delay(50);
  digitalWrite(5,  LOW);
  delay(50);
  digitalWrite(6,  LOW);
  delay(50);
  digitalWrite(7,  LOW);
  delay(50);
  digitalWrite(8,  LOW);
  delay(50);
  digitalWrite(9,  LOW);
  delay(50);
  digitalWrite(10,  LOW);
  delay(50);
  digitalWrite(11,  LOW);
  delay(50);



}