Hi everybody,
I'm new here and beginner in programming both C and MSP430.
I'm trying to understand how to use the button on the TI MSP430 launchpad.
The goal is only to light on the green LED when I press the button.
The button on the board is labelled P1.3. Therefore I suppose it's connected on the bit 3 of port 1.
I wrote the following code in Energia, but the green LEDs is off, and nothing happens when I push the button.
#define RedOn P1OUT |= 0b00000001
#define GreenOn P1OUT |= 0b01000000
#define RedOff P1OUT &= 0b11111110
#define GreenOff P1OUT &= 0b10111111