int Relay1 = 4;
int Relay2 = 5;
int Relay3 = 6;
int Relay4 = 7;
int r_delay = 250;
void setup() {
// Serial.begin(9600);
pinMode(Relay1, OUTPUT); // declare Relay as output
pinMode(Relay2, OUTPUT); // declare Relay as output
pinMode(Relay3, OUTPUT); // declare Relay as output
pinMode(Relay4, OUTPUT); // declare Relay as output
}
void loop() {
digitalWrite (Relay1, HIGH);
digitalWrite (Relay2, HIGH);
delay(r_delay);
digitalWrite (Relay1, LOW);
digitalWrite (Relay2, LOW);
delay(r_delay);
digitalWrite (Relay3, HIGH);
digitalWrite (Relay4, HIGH);
delay(r_delay);
digitalWrite (Relay3, LOW);
digitalWrite (Relay4, LOW);
delay(r_delay);
}