Question: 5. Add a switch to a digital input that sends a low pulse every time the switch is pressed using a pull-up resistor to +5V
5. Add a switch to a digital input that sends a low pulse every time the switch is pressed using a pull-up resistor to +5V and the switch connected to ground. Create a new counter object and a device driver for the switch that increments this new counter every time the switch is pressed. For every 10 times the switch is pressed, create an alarm that activates a task that sends a message to the display.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
