Assignment 2.2

posted Jul 3, 2010, 1:07 PM by Unknown user
This was a pretty easy one. It didn't take me much time at all.

void setup()
{
}

void loop()
{
    for (int = 13; led >=5; led--)
    {
        pinMode(led, OUTPUT);
        digitalWrite(led, HIGH);
        delay(50);
        digitalWrite(led, LOW);
        }
    for (int led =5; led<=13; led++)
    {
        pinMode(led, OUTPUT);
        digitalWrite(led, HIGH);
        delay(50);
        digitalWrite(led, LOW);
       }
}
Comments