ASIGNMENT 2 BLINKING LED (NICK HAGELIN) TO A SONG!

Advertisements

2 comments so far

  1. Nick Hagelin on

    The song is by the Velvet Underground.

    heres de code

    /* Blinking LED
    * ————
    *
    * turns on and off a light emitting diode(LED) connected to a digital
    * pin, in intervals of 2 seconds. Ideally we use pin 13 on the Arduino
    * board because it has a resistor attached to it, needing only an LED

    *
    * Created 1 June 2005
    * copyleft 2005 DojoDave
    * http://arduino.berlios.de
    *
    * based on an orginal by H. Barragan for the Wiring i/o board
    */

    int ledPin = 12; // LED connected to digital pin 12

    void setup()
    {
    pinMode(ledPin, OUTPUT); // sets the digital pin as output
    }

    void loop()
    {
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(300); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(300); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(300); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(300); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(300); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(300); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(150); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(150); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(150); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(150); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(150); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(150); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second

    }

  2. hagelinmandingo on

    the song is By SONIC YOUTH album: SONIC NURSE song: New HAmpshire

    /* Blinking LED
    * ————
    *
    * turns on and off a light emitting diode(LED) connected to a digital
    * pin, in intervals of 2 seconds. Ideally we use pin 13 on the Arduino
    * board because it has a resistor attached to it, needing only an LED

    *
    * Created 1 June 2005
    * copyleft 2005 DojoDave
    * http://arduino.berlios.de
    *
    * based on an orginal by H. Barragan for the Wiring i/o board
    */

    int ledPin = 12; // LED connected to digital pin 12

    void setup()
    {
    pinMode(ledPin, OUTPUT); // sets the digital pin as output
    }

    void loop()
    {
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(300); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(300); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(300); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(300); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(300); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(300); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(150); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(150); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(150); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(150); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(150); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(150); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(100); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(100); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(50); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(50); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second

    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second
    digitalWrite(ledPin, HIGH); // sets the LED on
    delay(10); // waits for a second
    digitalWrite(ledPin, LOW); // sets the LED off
    delay(10); // waits for a second

    }


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: