|void||emberButtonPressIsr (uint8_t button, EmberButtonPress press)|
|A callback called when a button is pressed. It is sometimes called in ISR context. |
These callbacks are contributed by the Button-Press plugin.
Must be implemented by the application. This function should contain the functionality to be executed in response to a button press, or callbacks to the appropriate functionality.
The button which was pressed, either BUTTON0 or BUTTON1 as defined in the appropriate BOARD_HEADER.
Either EMBER_SINGLE_PRESS if it was a single press, or EMBER_DOUBLE_PRESS if it was a double press.