Quote:
Originally posted by Bruce C.
We plan to put the compressor spike on RLY 7 output and wire the pressure switch to rc_sw1 (pins 1 & 3) of the RC digital input. Then we just use the following code:
relay7_fwd = rc_sw1
relay7_rev = 0
in place of the current relay 7 code. This will have the compressor relay state follow the state of the pressure switch. (Low pressure = closed, high pressure = open). You could use this same scheme with any of the relay outputs and switch inputs.
Bruce C.
|
If you want to put it on a Victor (say, PWM8), you can write...
PWM8 = rc_sw1 * 254
That was the first bit of code I actually wrote, early in the build period, in 2002.