Multiple StandardLights instances

Do you have a question on how to do something.
Ask in here.
Post Reply
sjmusic2
Posts: 33
Joined: Sun Sep 25, 2011 8:25 pm

Multiple StandardLights instances

Post 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 ?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Multiple StandardLights instances

Post 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);
Roberto.
sjmusic2
Posts: 33
Joined: Sun Sep 25, 2011 8:25 pm

Re: Multiple StandardLights instances

Post by sjmusic2 »

Thank you - I do wish the simple solutions were a little more obvious to me sometimes :roll: lol
Post Reply