Hi,
I want to program PIC18f such that i can switch on/off LED for different timings. Example if push button1 pressed the LED is on for 1 sec and off for 2 and this continues unless another button pressed which changes the time example 2 sec on and 4 sec off. I am doing this using delays however, the problem is that pic doesnt recognize when i press second button while first routine is on. that is during delay time. Please tell me where i'm going wrong. Thank you
I want to program PIC18f such that i can switch on/off LED for different timings. Example if push button1 pressed the LED is on for 1 sec and off for 2 and this continues unless another button pressed which changes the time example 2 sec on and 4 sec off. I am doing this using delays however, the problem is that pic doesnt recognize when i press second button while first routine is on. that is during delay time. Please tell me where i'm going wrong. Thank you