Add more one push button on physical pin 18 by using apulldown resistor as shown in the Figure below. Also add a thirdLED on physical pin 32, and name it LED3:
Modify the previous code so when Push Button 2 is pressed LED3blinks 10 times at a rate of 2 Hz or twice per second. Sinceyou are using pull-down resistor for the second push-button,interrupt at the rising edge must be used for it.
Code to modify:
Add more one push button on physical pin 18 by using a pulldown resistor as shown in the Figure below. Also add a third
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am