Functions |
|
void | halButtonIsr (uint8_t button, uint8_t state) |
Called in interrupt context whenever a button changes its state.
|
Detailed Description
These callbacks are contributed by the Button plugin.
Function Documentation
void halButtonIsr | ( | uint8_t |
button,
|
uint8_t |
state
|
||
) |
Called in interrupt context whenever a button changes its state.
Must be implemented by the application. This function should contain the functionality to be executed in response to changes of state in each of the buttons or callbacks to the appropriate functionality.
- Parameters
-
button
The button which has changed state, either BUTTON0 or BUTTON1 as defined in the appropriate BOARD_HEADER. state
The new state of the button referenced by the button parameter, either ::BUTTON_PRESSED if the button has been pressed or ::BUTTON_RELEASED if the button has been released.