here's my code:
Code: Select all
void setup()
{
ReefAngel.Init(); //Initialize controller
ReefAngel.Relay.On(Port8); //Turn Port8 on at startup
ReefAngel.PWM.SetDaylight(0); //Set pwm daylight channel to 0%
}
void loop()
{
ReefAngel.SingleATOLow(Port1,60); //Setup Port1 as Auto Top-Off function with on/off
if (ReefAngel.HighATO.IsActive()) ReefAngel.Relay.Off(Port1); //upper float set as shut off fail safe
ReefAngel.StandardLights(Port2,22,30,8,0); //Moonlight schedule 10:30pm - 8:00am
ReefAngel.StandardLights(Port3,20,00,10,00); //Refugium schedule 8:00pm - 10:00am
ReefAngel.StandardHeater(Port6,780,785); // Setup Heater to turn on at 78.0F and off at 78.5F
ReefAngel.StandardFan(Port7,790,785); // Setup Chiller to turn on at 79.0F and off at 78.5F
ReefAngel.ShowInterface(); // Draws the standard graphical user interface}
ReefAngel.PWM.SetDaylight(PWMSlope(9,30,21,30,0,25,60,0) //lights on at 9:00am off at 9:00pm from 0% to 100% over 120 min
}