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
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.
Re: Multiple StandardLights instances
Thank you - I do wish the simple solutions were a little more obvious to me sometimes
lol
![Rolling Eyes :roll:](./images/smilies/icon_rolleyes.gif)