Now that you've seen how debouncing works, can you create a program that successfully debounces 2 buttons?
Build a circuit that contains 2 buttons connected to your Arduino (no external pull-up resistors). Write a program that increments and prints a counter when one of the buttons is pressed and decrements and prints the same counter when the other button is pressed. Negative numbers are allowed.
For example, when I press the "increment" button 3 times, the "decrement" button 7 times, and the "increment" button 5 times, I get the following printout in the Serial Terminal:
