hi guys!
i would like to know the code for, say i want to repeat this block of code 5 times so I wont have to re-write it 5 times. many tnx guys.. this is just for blinking LEDs. pin2,3,4,5, 6 and 7 are pins on the arduino.
void loop(){
digitalWrite(pin2,HIGH);
igitalWrite(pin3,HIGH);
delay(100);
digitalWrite(pin2LOW);
igitalWrite(pin3,LOW);
delay(100);
digitalWrite(pin4,HIGH);
igitalWrite(pin5,HIGH);
delay(100);
digitalWrite(pin4,LOW);
digitalWrite(pin5,LOW);
delay(100);
digitalWrite(pin6,HIGH);
igitalWrite(pin7,HIGH);
delay(100);
digitalWrite(pin6,LOW);
igitalWrite(pin7,LOW);
delay(100);