diff --git a/src/main.cpp b/src/main.cpp index 1d27ab7..c68e961 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,8 +1,19 @@ #include -void setup() { Serial.begin(9600); } +#define RELAY 2 // GPIO4 +#define LED 5 // GPIO5 + +void setup() { + Serial.begin(9600); + pinMode(LED, OUTPUT); + pinMode(RELAY, OUTPUT); +} void loop() { - Serial.println("Hello world!"); + digitalWrite(LED, HIGH); + digitalWrite(RELAY, HIGH); + delay(1000); + digitalWrite(LED, LOW); + digitalWrite(RELAY, LOW); delay(1000); }