|
Pressure Switch code
I am having a problem with our compressor, spikes, and RC. I need to get the pressure switch to tell the spike that is connected to the compressor to turn on unto it read 120psi. Yet I don't even have a spike switching to fwd or rev?
I have this code in right now
if(digital_io_18 == 0)
{
relay1_fwd == 1;
}
if(digital_io_18 ==1)
{
relay1_fwd == 0;
}
Can some let me know what I am doing wrong?
Thank you
|