Question: On the fourth button press, turns on both LEDs AFTER roughly one second ( don ' t worry about the exact timing, just make sure
On the fourth button press, turns on both LEDs AFTER roughly one second dont worry about the exact timing, just make sure there is a noticeable delay by using the timers NOTE: It would be a good idea to set a breakpoint inside a timer handler to test this. Also, you will need to toy with the timer prescaler registers to get a noticeable delay.
On the fifth button press, turns off both LEDs AFTER roughly one second.
On the next button press, starts in the initial state. Make sure that this process of button presses can be repeated ie I can go through this cycle as mal times as I want to
Programming in C i just need help making the code for this. I have the LED lignts working by button press i just dont know how to inplement the delay.
I use the program Keil uVision
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
