moon lights not dimming?
Posted: Wed Jul 11, 2012 10:55 pm
It seems that my moonlights are always the same intensity, full on, even tho I use moonphase()...I have them plugged into my dimming actinic and daylight channels...Do I have this coded wrong?
In setup()
In loop()
In setup()
Code: Select all
// Set Actinic and Daylight off by default
ReefAngel.PWM.SetActinic(0);
ReefAngel.PWM.SetDaylight(0);Code: Select all
// PWMSlope based on Internal Memory values for Standard Lights
ReefAngel.PWM.ActinicPWMSlope();
ReefAngel.PWM.DaylightPWMSlope();
if ((hour() >= 5) || (hour() <= 22)) //from 10 pm to 5 am the moonlights will be on
{
ReefAngel.PWM.SetDaylight(MoonPhase());
ReefAngel.PWM.SetActinic(MoonPhase());
}
else
{
ReefAngel.PWM.SetDaylight(0); //from 5 am to 10 pm the moonlights will be off
ReefAngel.PWM.SetActinic(0);
}