smoothing out led dimming

Requests for new functions or software apps
Post Reply
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: smoothing out led dimming

Post by lnevo »

I'm pretty sure thats not the case.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: smoothing out led dimming

Post by lnevo »

Here's the function. It's callng HighRes slope and doing a SetChannelRaw. I think he's good....

Code: Select all


void RA_PWMClass::ChannelPWMSlope(byte Channel, byte Start, byte End, byte Duration)
{
	SetChannelRaw(Channel,PWMSlopeHighRes(
		InternalMemory.StdLightsOnHour_read(),
		InternalMemory.StdLightsOnMinute_read(),
		InternalMemory.StdLightsOffHour_read(),
		InternalMemory.StdLightsOffMinute_read(),
		Start,
		End, 
		Duration,  
		ExpansionChannel[Channel] 
	));	
}
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: smoothing out led dimming

Post by rimai »

I think you are right.
Looking at the code now, it looks like it would work.
Roberto.
Post Reply