Page 1 of 1

Multiple StandardLights instances

Posted: Tue Sep 04, 2012 11:41 am
by sjmusic2
Is it possible to use multiple instances of the StandardLights function on the same port ?

I have tried coding this but it doesn't appear to work as one of the calls works but the other doesn't. For example, I have a turf scrubber and I would like the light on Port 7 to come on for 8hrs, then off for 4hrs, repeating twice per 24hr period.

Maybe there is something further that needs to be coded to make it work ?

Re: Multiple StandardLights instances

Posted: Tue Sep 04, 2012 11:43 am
by rimai
Try this:

Code: Select all

if (hour()<12)
ReefAngel.StandardLights(Port1,9,0,11,0);
else
ReefAngel.StandardLights(Port1,17,0,19,0);

Re: Multiple StandardLights instances

Posted: Tue Sep 04, 2012 7:03 pm
by sjmusic2
Thank you - I do wish the simple solutions were a little more obvious to me sometimes :roll: lol