Tuesday, November 11, 2014

Jingle Bells arduino Code, UNO





// My christmas Light Arduino Code
// by USMC Junglist - Semper-Fi
void setup() {


  pinMode(3, OUTPUT);  // Roof
  pinMode(5, OUTPUT);  // Bushes
  pinMode(6, OUTPUT);  // Raindeer
  pinMode(7, OUTPUT);  // Yard
}
// the loop function runs over and over again forever
void loop() {
 
  digitalWrite(3, HIGH);  
  delay(500);             
  digitalWrite(3,  LOW);   
  delay(300);             
  digitalWrite(5, HIGH);  
  delay(500);             
  digitalWrite(5,  LOW);   
  delay(300);            
  digitalWrite(6, HIGH); 
  delay(500);            
  digitalWrite(6,  LOW);  
  delay(300);             
  digitalWrite(7, HIGH);  
  delay(500);             
  digitalWrite(7,  LOW);   
  delay(300); 

  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);   //Roof 10 Blinks
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
 
  digitalWrite(5, HIGH);     // Bushes 10 blinks
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
 
 
  digitalWrite(6, HIGH);   //Rain Deer 10 Blinks
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
 
  digitalWrite(3, HIGH);    //Roof on 2 sec
  delay(500);             
  digitalWrite(3,  LOW);   
  delay(500);
 
  digitalWrite(5, HIGH);   // Bushes on 2 sec
  delay(500);             
  digitalWrite(5,  LOW);   
  delay(500);

  digitalWrite(6, HIGH);    // Rain deer on 2 sec
  delay(500);             
  digitalWrite(6,  LOW);   
  delay(500); 
  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);   //Roof 10 Blinkd
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
  digitalWrite(3, HIGH);  
  delay(50);             
  digitalWrite(3,  LOW);   
  delay(50);
 
  digitalWrite(5, HIGH);     // Bushes 10 blinks
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
  digitalWrite(5, HIGH);  
  delay(50);             
  digitalWrite(5,  LOW);   
  delay(50);
 
 
  digitalWrite(6, HIGH);   //Rain Deer 10 Blinks
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
  digitalWrite(6, HIGH);  
  delay(50);             
  digitalWrite(6,  LOW);   
  delay(50);
 
 
  digitalWrite (3, HIGH); //Roof on
  delay(2000);
 
  digitalWrite(6, HIGH);   //raindeer blink on 3 sec
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
 
  digitalWrite(5, HIGH);    // Bushes Blink
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
 
  digitalWrite (5,HIGH);  // Bushes on
  delay(2000);
 
  digitalWrite (6,HIGH); //Raindeer on
  delay(1000);
 
  digitalWrite(3, LOW); // Roof Off 
  delay(500);             
 
  digitalWrite(3, HIGH);   //Roof Blink
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
 
  digitalWrite(5, HIGH);   //Bushes Blink
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
 
  digitalWrite(3,HIGH); //Roof on
  delay(1000);
 
  digitalWrite(6, HIGH);   //Rainder Blink
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
 
  digitalWrite (6,LOW); //Raindeer off
  delay(50);
 
  digitalWrite(3, HIGH);  // Everyting Blinking 
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
  digitalWrite(3, HIGH);  
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(100);             
  digitalWrite(6,  LOW);   
  delay(100);
 
 
  digitalWrite(3,HIGH); //Everything on fo 5 sec
  delay(3000);
  digitalWrite(5,HIGH);
  delay(3000);
  digitalWrite(6,HIGH);
  delay(3000);
 
  digitalWrite(3,LOW); //Everything off for 1 sec
  delay(50);
  digitalWrite(5,LOW);
  delay(50);
  digitalWrite(6,LOW);
  delay(50);
 
  digitalWrite(3, HIGH);   //Everything Blinking
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(10);             
  digitalWrite(6,  LOW);
  delay (100);
  digitalWrite(3, HIGH);   //Everything Blinking
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(10);             
  digitalWrite(6,  LOW);
  delay (100);
  digitalWrite(3, HIGH);   //Everything Blinking
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(10);             
  digitalWrite(6,  LOW);
  delay (100);
  digitalWrite(3, HIGH);   //Everything Blinking
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(10);             
  digitalWrite(6,  LOW);
  delay (100);
  digitalWrite(3, HIGH);   //Everything Blinking
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(10);             
  digitalWrite(6,  LOW);
  delay (100);
  digitalWrite(3, HIGH);   //Everythink Blinking
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(10);             
  digitalWrite(6,  LOW);
  delay (100);
  digitalWrite(3, HIGH);   //Everything Blinking
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(10);             
  digitalWrite(6,  LOW);
  delay (100);
  digitalWrite(3, HIGH);   //Everything Blinking
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(10);             
  digitalWrite(6,  LOW);
  delay (100);
  digitalWrite(3, HIGH);   //Everything Blinking
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(10);             
  digitalWrite(6,  LOW);
  delay (100);
  digitalWrite(3, HIGH);   //Everything Blinking
  delay(100);             
  digitalWrite(3,  LOW);   
  delay(100);
  digitalWrite(5, HIGH);  
  delay(100);             
  digitalWrite(5,  LOW);   
  delay(100);
  digitalWrite(6, HIGH);  
  delay(10);             
  digitalWrite(6,  LOW);
  delay (100);
 
 
  digitalWrite(3,HIGH);  // Roof on
  delay (500);
 
  digitalWrite(5, LOW);
  delay(50);
 
  digitalWrite(5, HIGH);  //Buches Blink
  delay(200);
  digitalWrite(5, LOW);
  delay(50);
  digitalWrite(5, HIGH);
  delay(200);
  digitalWrite(5, LOW);
  delay(50);
  digitalWrite(5, HIGH);
  delay(200);
  digitalWrite(5, LOW);
  delay(50);
  digitalWrite(5, HIGH);
  delay(200);
  digitalWrite(5, LOW);
  delay(50);
  digitalWrite(5, HIGH);
  delay(200);
  digitalWrite(5, LOW);
  delay(50);
 
  digitalWrite(6, HIGH);  //RainDeer Blink
  delay(200);
  digitalWrite(6, LOW);
  delay(50);
  digitalWrite(6, HIGH);  //RainDeer Blink
  delay(200);
  digitalWrite(6, LOW);
  delay(50);
  digitalWrite(6, HIGH);  //RainDeer Blink
  delay(200);
  digitalWrite(6, LOW);
  delay(50);
  digitalWrite(6, HIGH);  //RainDeer Blink
  delay(200);
  digitalWrite(6, LOW);
  delay(50);
  digitalWrite(6, HIGH);  //RainDeer Blink
  delay(200);
  digitalWrite(6, LOW);
  delay(50);
 
  digitalWrite (3,LOW);
  delay (50);
 
 
  digitalWrite(3,HIGH); //Everything on fo 5 sec
  delay(5000);
  digitalWrite(5,HIGH);
  delay(5000);
  digitalWrite(6,HIGH);
  delay(5000);
 
  digitalWrite(3,LOW); //Everything off for 1 sec
  delay(50);
  digitalWrite(5,LOW);
  delay(50);
  digitalWrite(6,LOW);
  delay(50);
 
 
}

No comments:

Post a Comment