Core2 for AWS IoT EduKit BSP 1.5.1
Button_IsPress
uint8_t Button_IsPress(Button_t* button);
uint8_t Button_IsPress(Button_t *button)
See if the specified button is currently being pressed.
Definition: button.c:68
The member defintions of the virtual button data.
Definition: button.h:28

See if the specified button is currently being pressed.

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