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

14 lines
173 B
Arduino
Raw Permalink Normal View History

2019-11-22 18:33:03 +01:00
// Relay
int relay = 7;
void setup() {
pinMode(relay, OUTPUT);
}
void loop() {
digitalWrite(relay, HIGH);
delay(10000);
digitalWrite(relay, LOW);
delay(5000);
}