int i;
void setup()
{
for(i=2;i<10;i++) // initalize the digital pin as output.
{
pinMode(i, OUTPUT);
}
}
void loop()
{
for(i=2;i<10;i++)
{
digitalWrite(i, HIGH); // Turn on led
delay(100); // wait a second
digitalWrite(i, LOW); // turn off led.
}
}