Re: PWMSmoothRampHighRes
Posted: Tue Apr 07, 2015 4:42 am
Here's the chart from last night. The lights should start dimming at 2100. Ignore the dips earlier. That was cloud code that I disabled just to make sure it wasn't interfering.
http://forum.reefangel.com/status/chart ... lter=pwme1 Interestingly, the blues on channel 0 seem to be working correctly.
http://forum.reefangel.com/status/chart ... lter=pwme0 Here's the lighting control code:
I'm going to change that mess to this just to make sure.
http://forum.reefangel.com/status/chart ... lter=pwme1 Interestingly, the blues on channel 0 seem to be working correctly.
http://forum.reefangel.com/status/chart ... lter=pwme0 Here's the lighting control code:
Code: Select all
// Cloud/lightning lighting control
FireInTheHole=false;
ReefAngel.PWM.SetChannelRaw(0,PWMSmoothRampHighRes(9,30,22,30,0,InternalMemory.read(Mem_B_SlopeEndBlue),60,0));
DaylightPWMValue=PWMSmoothRampHighRes(10,30,22,0,0,InternalMemory.read(Mem_B_SlopeEndWhite),60,0);
//if (!powerOutage) CheckCloud();
if (!FireInTheHole) ReefAngel.PWM.SetChannelRaw(1,DaylightPWMValue);
Code: Select all
ReefAngel.PWM.SetChannelRaw(0,PWMSmoothRampHighRes(9,30,22,30,0,70,60,0));
ReefAngel.PWM.SetChannelRaw(1,PWMSmoothRampHighRes(10,30,22,0,0,75,60,0));