does this look right?
Posted: Fri Jun 26, 2015 3:57 pm
Decided to take a stab at coding dosing pumps.
Basically, my dosers come on every 30 minutes for 60 seconds.
I wanted my carbonate to come on at night, and be disabled during the day.
And calcuim to run during the day.
Basically, my dosers come on every 30 minutes for 60 seconds.
I wanted my carbonate to come on at night, and be disabled during the day.
And calcuim to run during the day.
Code: Select all
if ((hour() >= 8) && (hour() < 20)) // Between 8am and 8pm disable Port 8 (carbonate)
ReefAngel.Relay.Off(Port8);
if ((hour() <= 8) && (hour() > 20)) // Between 8pm and 8am disable Port 7 (calcuim)
ReefAngel.Relay.Off(Port7);