|
Re: Pressure Switch code
Along with the == vs = confusion, you're reading the wrong thing to test the pressure switch. Writing to digital_io_18 is for configuring the pin as either an input or an output. You want read from rc_dig_in18, which gives you the value of the pin.
|