int pinarr[]={
2,3,4,5,
};
void setup() {
// put your setup code here, to run once:
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
for(int i = 0; i<4; i++)
{
digitalWrite(pinarr[i], HIGH);
delay(200);
}
}