SlideShare a Scribd company logo
1 of 1
void setup() {
for (int pin=13; pin> 8; pin--)
{ pinMode ( pin, OUTPUT);
}
}
void loop() {
for (int pin=13; pin> 8; pin--)
{ digitalWrite (pin, HIGH);
delay(250);
digitalWrite(pin,LOW);
}
for (int pin=9; pin< 14; pin++)
{digitalWrite (pin, HIGH);
delay(250);
digitalWrite(pin,LOW);
}
}

More Related Content

More from Azeem Waqar

Starbucks operation management
Starbucks operation managementStarbucks operation management
Starbucks operation managementAzeem Waqar
 
Mechanical hazards
Mechanical hazardsMechanical hazards
Mechanical hazardsAzeem Waqar
 

More from Azeem Waqar (7)

Mc conkey 13-pb
Mc conkey 13-pbMc conkey 13-pb
Mc conkey 13-pb
 
Mc conkey 12-pb
Mc conkey 12-pbMc conkey 12-pb
Mc conkey 12-pb
 
Mc conkey 11-pb
Mc conkey 11-pbMc conkey 11-pb
Mc conkey 11-pb
 
Mc conkey 10-pb
Mc conkey 10-pbMc conkey 10-pb
Mc conkey 10-pb
 
Thermocouples
ThermocouplesThermocouples
Thermocouples
 
Starbucks operation management
Starbucks operation managementStarbucks operation management
Starbucks operation management
 
Mechanical hazards
Mechanical hazardsMechanical hazards
Mechanical hazards
 

Simple FOR LOOP arduino board

  • 1. void setup() { for (int pin=13; pin> 8; pin--) { pinMode ( pin, OUTPUT); } } void loop() { for (int pin=13; pin> 8; pin--) { digitalWrite (pin, HIGH); delay(250); digitalWrite(pin,LOW); } for (int pin=9; pin< 14; pin++) {digitalWrite (pin, HIGH); delay(250); digitalWrite(pin,LOW); } }