From f4703b29c9d0795549bac06921ee55aba568b8d2 Mon Sep 17 00:00:00 2001 From: per1234 Date: Sun, 22 Oct 2017 01:44:03 -0700 Subject: [PATCH] Set pin mode of RELAY_PIN in PID_RelayOutput example --- examples/PID_RelayOutput/PID_RelayOutput.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/PID_RelayOutput/PID_RelayOutput.ino b/examples/PID_RelayOutput/PID_RelayOutput.ino index 17fbe1a..1f205d3 100644 --- a/examples/PID_RelayOutput/PID_RelayOutput.ino +++ b/examples/PID_RelayOutput/PID_RelayOutput.ino @@ -31,6 +31,8 @@ unsigned long windowStartTime; void setup() { + pinMode(RELAY_PIN, OUTPUT); + windowStartTime = millis(); //initialize the variables we're linked to