Page 1 of 1

dimming code question

Posted: Thu Sep 03, 2015 8:36 am
by MDB1029

Code: Select all

        DaylightPWMValue=PWMSlopeHighRes(10,0,20,0,0,30,60,0);
         CheckCloud();
         ReefAngel.PWM.SetChannelRaw(0,DaylightPWMValue);

I just have a general question about this code (10,0,20,0,0,30,60,0) it is (Hour on, minute on,hour off, minute off,starting percentage,max percentage, minutes of ramp up, ?) not sure what this last one is?

Re: dimming code question

Posted: Thu Sep 03, 2015 10:53 am
by cosmith71
I believe it is a fallback value to return in case of an error in calculation. I'm not sure it has much significance, but maybe someone else can chime in.