arduino-course/Week 3/Relay/Relay.ino

14 lines
173 B
C++

// Relay
int relay = 7;
void setup() {
pinMode(relay, OUTPUT);
}
void loop() {
digitalWrite(relay, HIGH);
delay(10000);
digitalWrite(relay, LOW);
delay(5000);
}