Wavemakers off at night
Posted: Tue Apr 24, 2012 4:06 pm
Trying to figure this out...maybe my thinking or logic is backwards. I'd like the two powerheads to go off at night and just have the return pump on...here's the code snippet for the wavemakers
The INO compiles fine and uploads, but the wavemakers are not turning off at night.
Code: Select all
if (hour ()>12 || hour ()<21)
{
ReefAngel.WavemakerRandom1(Port5,15,60);//Turn on/off Wavemaker 1 random cycles from 15 to 60 seconds
}
else
{
ReefAngel.Relay.Off(Port5);
}
if (hour ()>12 || hour ()<21)
{
ReefAngel.WavemakerRandom2(Port6,15,60);//Turn on/off Wavemaker 2 random cycles from 15 to 60 seconds
}
else
{
ReefAngel.Relay.Off(Port6);
}