Arduino-PID-Library icon indicating copy to clipboard operation
Arduino-PID-Library copied to clipboard

PID_RelayOutput.ino needs to set 'pinMode(RelayPin, OUTPUT);'?

Open abetusk opened this issue 12 years ago • 2 comments

Does the 'RelayPin' the PID_RelayOutput.ino example need to be set to output in the 'setup' function?

abetusk avatar Jun 28 '13 04:06 abetusk

I had the same issue when trying this example. should be a

pinMode(RelayPin,OUTPUT);

sjunnesson avatar Jul 22 '13 14:07 sjunnesson

I ran into the same thing. Wish I had thought to look here instead of trying to trouble shoot it for the past couple hours.

like sjunnesson said, simple fix just add: pinMode(RelayPin, OUTPUT);

kelna2 avatar May 25 '14 18:05 kelna2