Blinking LEDs – Kyna

For some reason I can’t open any Adobe programs, so I couldn’t strip the sound. Sorry…
[youtube http://www.youtube.com/watch?v=tsiMpjwOWp8?rel=0]

int del = 50;

void setup(){
  // initialize the digital pin as an output.
  for(int led = 13; led > 5; led--){
    pinMode(led, OUTPUT);
  }
}
// the loop routine runs over and over again forever:
void loop() {
  for(int i = 13; i > 5; i--){
    digitalWrite(i, HIGH);
    delay(del);
    digitalWrite(i, LOW);
  }
  for(int j = 6; j < 14; j++){
    digitalWrite(j, HIGH);
    delay(del);
    digitalWrite(j, LOW);
  }
}

Post a comment