I'm a newbie to both coding and the ReefAngel system so I'm hoping you pros can help me out. I got my system a few weeks ago for my nano reef and I absolutely love it! This will probably be pretty easy for you guys.
I'm trying to turn a port on at multiple scheduled times ( from 10 am to 11am and again from 11 pm to 7 am ) but I can't seem to figure it out. I've searched all over the forum but I can't seem to find what I'm looking for. So far I've tried these lines but couldn't get them to work.
First:
Code: Select all
ReefAngel.StandardLights( Port3,10,0,11,0 );
if (bitRead(ReefAngel.Relay.RelayData,Port3)==0) ReefAngel.StandardLights( Port3,22,0,7,0 );
Code: Select all
ReefAngel.StandardLights( Port3,10,0,11,0 );
ReefAngel.StandardLights( Port3,22,0,7,0 );
Code: Select all
if (hour()>=10 && hour()<11)
{
ReefAngel.Relay.On ( Port3 );
}
else
{
ReefAngel.StandardLights( Port3,22,0,7,0 );
}
I was getting an upload error when I tried the last so I tried adjusting the code a little. It eventually let me upload the last one but it doesn't look like it's working. Any help would be greatly appreciated.
Thanks!
-Tori