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?