Home › Forums › Microcontrollers › PIC Microcontroller › PIC Microcontroller Non-Blocking Delay Implementation › Reply To: PIC Microcontroller Non-Blocking Delay Implementation
February 1, 2016 at 9:55 pm
#12102
Ligo George
Keymaster
My logic will be by using 2 variables.
- Increment each variable after a fixed delay or timer overflow if the corresponding LED is ON.
- Check each variable for the limit.
- If the limit is reached, turn OFF the corresponding LED and reset the variable to zero.