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 ?
Multiple StandardLights instances
-
rimai
- Posts: 12857
- Joined: Fri Mar 18, 2011 6:47 pm
Re: Multiple StandardLights instances
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
Thank you - I do wish the simple solutions were a little more obvious to me sometimes
lol