dimming code question

Post Reply
MDB1029
Posts: 178
Joined: Wed Nov 12, 2014 3:10 pm
Location: An Oklahoman in Ohio

dimming code question

Post 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?
Image
User avatar
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: dimming code question

Post 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.
Post Reply