apuntes_Arduino/tests/OK_Relay_x4/OK_Relay_x4.ino

39 lines
702 B
Arduino
Raw Normal View History

2021-01-05 00:15:16 -03:00
void setup() {
pinMode(13, OUTPUT);
pinMode(12, OUTPUT);
pinMode(11, OUTPUT);
pinMode(10, OUTPUT);
digitalWrite(13,1);
digitalWrite(12,1);
digitalWrite(11,1);
digitalWrite(10,1);
}
void loop() {
digitalWrite(13,0);
delay(1000);
digitalWrite(13,1);
digitalWrite(12,0);
delay(1000);
digitalWrite(12,1);
digitalWrite(11,0);
delay(1000);
digitalWrite(11,1);
digitalWrite(10,0);
delay(1000);
digitalWrite(10,1);
digitalWrite(13,0);
delay(1000);
digitalWrite(12,0);
delay(1000);
digitalWrite(11,0);
delay(1000);
digitalWrite(10,0);
delay(5000);
digitalWrite(13,1);
digitalWrite(12,1);
digitalWrite(11,1);
digitalWrite(10,1);
delay(5000);
}