Question: 4 Debouncing a Button Press Input Write a function to de-bounce the input pin PB0. Once you de-bounce the pin, if there is a change
4 Debouncing a Button Press Input Write a function to de-bounce the input pin PB0. Once you de-bounce the pin, if there is a change in the status write a message to the serial monitor program using the USART (you may use the Arduino wiring library for this). Test your input with a push button connected to ground. Enable the internal pull up on PB0. You will use this function in future programs and want to accurately detect when a button is pressed and released without repeats of the event or missing it altogether. 1. Test your program to make sure your de-bounce function doesnt report false presses or releases of your button 2. How long was your delay between reads of the input pin and why did you choose that value? 3. If you decrease the time delay between reads of the input pin at what point to you start seeing multiple press reports for a single press?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
