Arduino Forum

Products => The Arduino Starter Kit and Basic Kit => Topic started by: Jonny0909 on Sep 13, 2016, 09:52 pm

Title: Xmas Blinkers
Post by: Jonny0909 on Sep 13, 2016, 09:52 pm

void setup() {
  // initialize digital pin 13 as an output.
  pinMode(13, OUTPUT);
  pinMode(8, OUTPUT);
  pinMode(9, OUTPUT);
}

void loop() {
 
 
 
 
  digitalWrite(13, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(1000); 
  digitalWrite(9,  LOW);

  delay(200);
       
  digitalWrite(13, LOW);
  delay(200);
  digitalWrite(8, LOW);
  delay(500);
  digitalWrite(9,  HIGH);
  delay(500);

     
 
}