Reply To: PIC Microcontroller Non-Blocking Delay Implementation

Home Forums Microcontrollers PIC Microcontroller PIC Microcontroller Non-Blocking Delay Implementation Reply To: PIC Microcontroller Non-Blocking Delay Implementation

#12102

Ligo George
Keymaster

My logic will be by using 2 variables.

  1. Increment each variable after a fixed delay or timer overflow if the corresponding LED is ON.
  2. Check each variable for the limit.
  3. If the limit is reached, turn OFF the corresponding LED and reset the variable to zero.
string(7) "9898001"