Core2 for AWS IoT EduKit BSP 1.5.1
Button_WasPressed
uint8_t Button_WasPressed(Button_t* button);
uint8_t Button_WasPressed(Button_t *button)
See if the specified button was pressed.
Definition: button.c:43
The member defintions of the virtual button data.
Definition: button.h:28

See if the specified button was pressed.

Parameters
[out]buttonThe button to check if it was pressed. Updates the value of the state definition.
Returns
A boolean if the button specified was pressed. 0x00 for not pressed, 0xff for pressed.