Hi,
I'm attempting to initialize and assign a button to trigger a function in the SPPLEDemo and I'm having problems. I would like to use the following code to put the LCD in standby by pressing a button on the exp-msp430f5438a experimenter board but it is not working. I've tried running it the mainthread() as well as inside the SPPLEDemo with no luck. Everything else works greats.
All I need to do is trigger a function by pressing a button. If there is an easier way please let me know.
#include hal_Buttons.h
#include hal_Board.h
volatile unsigned char buttonsPressed;
halButtonsInit(BUTTON_ALL);
halButtonsInterruptEnable(BUTTON_ALL);
buttonsPressed = halButtonsPressed();
if (!buttonsPressed)
{
halLcdSetBackLight(0);
halLcdStandby();
}
Best regards,
Forrest Kimbriel
