WHY IS THIS If statement NOT WORKING?
Hi, I added some code to the example program to send an alphaumeric string to com port to identify the input but the iF statement does not work as expected and cannot understand why ? It always goes to else line regardless of buttonState being 0 or 1 Advice would be appreciated Cheers
DigitalReadSerial with on-board Pushbutton
Reads a digital input on pin 5, prints the result to the serial monitor
* MSP-EXP430G2 LaunchPad
This example code is in the public domain.
// digital pin 5 has a pushbutton attached to