Question: code is in C 2) Adapt your program to create a stopwatch by doing the following. Add a second timer (Stop Watch) and a second
code is in C 2) Adapt your program to create a stopwatch by doing the following. Add a second timer (Stop Watch) and a second count (count2) to the program. Then set up the second timer to "fire" on a 100 millisecond interval (0.1 seconds). Inside the timers "if", test the button, that is part of the encoder knob on your board, and if it is not being pressed, set a the second count to zero. But if the button is pressed, increment the second count, then clear the LCD and display the first count on line one and the second count on the second line of on the LCD. This will be demonstrated in class. HIGH Every 100 milliseconds if the button is not pressed. // if( digitalRead(4) Set count2 to zero else Increment count2 Clear Display Display count2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
