
Originally Posted by
Darrel Taylor
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
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Bookmarks