These callbacks are contributed by the Button Interface plugin.
void emberAfPluginButtonInterfaceButton0HighCallback |
( |
void |
| ) |
|
This function is called when the GPIO tied to button zero goes high
void emberAfPluginButtonInterfaceButton0LowCallback |
( |
void |
| ) |
|
This function is called when the GPIO tied to button zero goes low
void emberAfPluginButtonInterfaceButton0PressedLongCallback |
( |
uint16_t |
timePressedMs, |
|
|
bool |
pressedAtReset |
|
) |
| |
- Parameters
-
timePressedMs | Amount of time button 0 was pressed. |
pressedAtReset | Was the button pressed at startup. |
void emberAfPluginButtonInterfaceButton0PressedShortCallback |
( |
uint16_t |
timePressedMs | ) |
|
- Parameters
-
timePressedMs | Time (in ms) button 0 was pressed short |
void emberAfPluginButtonInterfaceButton0PressingCallback |
( |
void |
| ) |
|
This function is periodically called when button 0 is being pressed.
void emberAfPluginButtonInterfaceButton1HighCallback |
( |
void |
| ) |
|
This function is called when the GPIO tied to button one goes high
void emberAfPluginButtonInterfaceButton1LowCallback |
( |
void |
| ) |
|
This function is called when the GPIO tied to button one goes low
void emberAfPluginButtonInterfaceButton1PressedLongCallback |
( |
uint16_t |
timePressedMs, |
|
|
bool |
pressedAtReset |
|
) |
| |
- Parameters
-
timePressedMs | Amount of time button 1 was pressed. |
pressedAtReset | Was the button pressed at startup. |
void emberAfPluginButtonInterfaceButton1PressedShortCallback |
( |
uint16_t |
timePressedMs | ) |
|
- Parameters
-
timePressedMs | Time (in ms) button 1 was pressed short |
void emberAfPluginButtonInterfaceButton1PressingCallback |
( |
void |
| ) |
|
This function is periodically called when button 1 is being pressed.