This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Enocean Mesh example for dimming using PWM

Hi,

I need to use 

 p_status->action == RELEASE_ACTION

to set the brightness level, but the p_status->action only gets updated after the loop finish so:

 if (p_status->action == RELEASE_ACTION) break;

doesn't break the loops to increase or decrease the PWM duty cycle changes.

how can I update the p_status->action in the middle of the loop?

main c: www.dropbox.com/.../main.c

Parents Reply Children
Related