I'm unable to use the pushbutton on the launchpad to control the LED on the launchpad.
I first declared pin P2.1 to which the pushbutton is connected as input and enabled the pullup resister at the same pin.
Can you please help me how to use the pushbutton in the launchpad?