Fading of light in IoT_Demo example

paritosharya007
Posts: 10
Joined: Sat May 23, 2015 1:24 pm

Fading of light in IoT_Demo example

Postby paritosharya007 » Tue Aug 04, 2015 2:30 pm

Hi,

I was trying to figure out how the lights fade in/out while reaching the target duty in IoT Demo. The code for fading the duty to its target is defined in the user_light_adj.c file. While it uses a 40 items based array of pwm_param named LightEvtArr and uses it to change the target duty of each PIN with smooth transition, I have not found out how and where is this array defined which is used to change the values.

Can you please share some details into the smoothing transitioning effect especially how and where is this array of pwm_param named LightEvtArr populated?

Looking forward to hear from you!

Paritosh

Who is online

Users browsing this forum: No registered users and 28 guests