How to set port status based on other port status
Posted: Sat Jun 30, 2012 12:01 pm
It seems these should be simple to code, but I can't wrap my head around it.
Two things I want to do:
1) I want to turn a port on whenever a different port is off. No doubt going to use the "!" boolean somehow, but I don't know which functions.
2) I want to turn a port on for 1 hour before the metal halides come on, and one hour after the metal halides come on. This one is a bit trickier, probably using some math functions.
Any suggestions?
Two things I want to do:
1) I want to turn a port on whenever a different port is off. No doubt going to use the "!" boolean somehow, but I don't know which functions.
2) I want to turn a port on for 1 hour before the metal halides come on, and one hour after the metal halides come on. This one is a bit trickier, probably using some math functions.
Any suggestions?