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
How do I see if a relay port is on or off
-
- Posts: 26
- Joined: Thu Mar 01, 2012 1:31 pm
Re: How do I see if a relay port is on or off
Code: Select all
if ( ReefAngel.Relay.Status(Port5) )
{
//Do something if port 5 is on
}
Roberto.
-
- Posts: 26
- Joined: Thu Mar 01, 2012 1:31 pm
Re: How do I see if a relay port is on or off
Thanks rimai just what I was looking for
Re: How do I see if a relay port is on or off
this is extremely helpful for moonlights programmed on the same PWM as actinics!
I'm going to try this later:
I'm going to try this later:
Code: Select all
if(!ReefAngel.Relay.Status(Port2))
{
ReefAngel.PWM.SetActinic(MoonPhase());
}
else ReefAngel.PWM.ActinicPWMParabola();