reefangel/Libraries — pull request #144 by amunter (2014-04-22 13:22:53+00:00)
Title: Adding PWMSmoothRamp and ElseMode to Globals

Adding profiles for LED dimming and DC Pump driving.

Plenty of people use the ElseMode for their pumps at this point, so that is included into the Globals library alongside the other pump modes. The version included here is the one that lnevo has in his .ino file with case sensitivity changed around a bit internally.

Also, PWMSmoothRamp is intended to give a profile that goes from the min of a Sine function to the max of a Sine function at the beginning and end of the day's light cycle. The impact of the max part won't be that visible, but the min part will be. With many people using newer drivers like the Meanwell LDD and able to dim all the way down to 0 and with many PWMs being generated by the PCA9685 chip which allows 4096 levels (12-bits) of PWM output this will allow for a very gradual increase in light level at the very dim levels where the difference between 1% and 2% is very visible.