Page 1 of 1
How do I see if a relay port is on or off
Posted: Sun Jun 24, 2012 3:31 pm
by dmglakewood
I'm just trying to see if port 5 is currently on or off. I can write the rest of the code I just need to do a check first. I tried to do some searching but came up with nothing.
Thanks
Re: How do I see if a relay port is on or off
Posted: Sun Jun 24, 2012 3:33 pm
by rimai
Code: Select all
if ( ReefAngel.Relay.Status(Port5) )
{
//Do something if port 5 is on
}
Re: How do I see if a relay port is on or off
Posted: Sun Jun 24, 2012 3:35 pm
by dmglakewood
Thanks rimai just what I was looking for
Re: How do I see if a relay port is on or off
Posted: Sat Jul 28, 2012 10:00 am
by alexwbush
this is extremely helpful for moonlights programmed on the same PWM as actinics!
I'm going to try this later:
Code: Select all
if(!ReefAngel.Relay.Status(Port2))
{
ReefAngel.PWM.SetActinic(MoonPhase());
}
else ReefAngel.PWM.ActinicPWMParabola();