Functions

void emberButtonPressIsr (uint8_t button, EmberButtonPress press)
A callback called when a button is pressed. It is sometimes called in ISR context.

Detailed Description

These callbacks are contributed by the Button-Press plugin.

Function Documentation

void emberButtonPressIsr ( uint8_t button,
EmberButtonPress press
)

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.

Parameters
button The button which was pressed, either BUTTON0 or BUTTON1 as defined in the appropriate BOARD_HEADER.
press Either EMBER_SINGLE_PRESS if it was a single press, or EMBER_DOUBLE_PRESS if it was a double press.