Question: Help with C++ coding problem We are asked to Create a program that blinks the LED when the button is pressed and KEEPS COUNT of

Help with C++ coding problem

We are asked to Create a program that blinks the LED when the button is pressed and KEEPS COUNT of the number of times the button has been pressed.

Help with C++ coding problem We are asked to Create a programthat blinks the LED when the button is pressed and KEEPS COUNT

We are asked to Create a program that blinks the LED when the button is pressed and KEEPS COUNT of the number of times the button has been pressed.

polling key press LaunchPad F5529 has two user buttons: S1 is connected at port 2 BITI (P2.1. S2 is at port 1 B?TI (P1.1 ) User Buttons User LEDs S1 R30 P21 12 LED2 ?? R29 ND GND I LED1 PWR 470R There are two ways of knowing if a key has been pressed, interrupt or polling. We will do the polling here using previous code and add a simple polling loop to observe the value of P1.1. Note that before the BIT1 can be observed, we need to turn on the "intenal pull up resister" on BIT1, otherwise, there is no voltage supplied to the key button. If you are not famillar with the BITWISE operation (AND, OR, XOR, NOT), check this page. polling key press LaunchPad F5529 has two user buttons: S1 is connected at port 2 BITI (P2.1. S2 is at port 1 B?TI (P1.1 ) User Buttons User LEDs S1 R30 P21 12 LED2 ?? R29 ND GND I LED1 PWR 470R There are two ways of knowing if a key has been pressed, interrupt or polling. We will do the polling here using previous code and add a simple polling loop to observe the value of P1.1. Note that before the BIT1 can be observed, we need to turn on the "intenal pull up resister" on BIT1, otherwise, there is no voltage supplied to the key button. If you are not famillar with the BITWISE operation (AND, OR, XOR, NOT), check this page

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!