Add more one push button on physical pin 18 by using a pulldown resistor as shown in the Figure below. Also add a third
Posted: Sun Jul 03, 2022 11:59 am
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:
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: