Go Down

Topic: Xmas Blinkers (Read 1 time) previous topic - next topic

Jonny0909


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);

     
 
}
 




Go Up