Quote Originally Posted by Darrel Taylor View Post
Switch to ground. Definately the better way to go.

I might suggest a different Main loop though.
Code:
MAIN:
    IF RELAY = Pswitch THEN
        RELAY = ! Pswitch ' Relay pin = the opposite of Pswitch pin    
    ENDIF
    PAUSE 20
    GOTO MAIN

    END
Those pesky R-M-W's
<br>


Darrel,

I just want to learn;

Is it really a safe way to read the status of an output pin?

Thanks