The wavemaker function uses timer 1 and timer 2 for their intervals.
Simply place this in the setup():
ReefAngel.Timer[1].Interval=21600; //21600s = 6hr
ReefAngel.Timer[2].Interval=21600; //21600s = 6hr
Then, in the loop():
if (ScheduleTime(6,0,0)) ReefAngel.Timer[1].Start(); // starts timer 1 at 6:00:00
if (ScheduleTime(11,30,0)) ReefAngel.Timer[2].Start(); // starts timer 2 at 11:30:00
Let me know if this doesn't work for you.
Roberto.
Roberto.
ReefAngel.StandarLights(Relay4,6,0,12,0);
if (bitRead(ReefAngel.Relay.RelayData,Relay4)==0) ReefAngel.StandarLights(Relay4,18,0,0,0);
Try it and let me know if it works.
Roberto.
void AlternaPompe(byte Pump, byte PTimer, byte OnHour, byte OnMinute,
int RunTime)
{
...
}
And then your function calls:
AlternaPompe(Port3, 1, 18,0 ,21600);
should work.
curt
--
/*
Curt Binder
http://curtbinder.info/
*/