-->
Page 1 of 1

Fading of light in IoT_Demo example

PostPosted: Wed Aug 05, 2015 2:43 am
by paritosharya007
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.

Does anyone have an idea about the smooth transitioning effect while changing the duty for different PINs and how is the array populated?