Button Interface Callbacks
Functions |
|
void | emberAfPluginButtonInterfaceButton0PressedShortCallback (uint16_t timePressedMs) |
Button0 Pressed Short.
|
|
void | emberAfPluginButtonInterfaceButton1PressedShortCallback (uint16_t timePressedMs) |
Button1 Pressed Short.
|
|
void | emberAfPluginButtonInterfaceButton0PressedLongCallback (uint16_t timePressedMs, bool pressedAtReset) |
Button0 Pressed Long.
|
|
void | emberAfPluginButtonInterfaceButton1PressedLongCallback (uint16_t timePressedMs, bool pressedAtReset) |
Button1 Pressed Long.
|
|
void | emberAfPluginButtonInterfaceButton0PressingCallback (void) |
Button0 Pressing.
|
|
void | emberAfPluginButtonInterfaceButton1PressingCallback (void) |
Button1 Pressing.
|
|
void | emberAfPluginButtonInterfaceButton0LowCallback (void) |
Button0 Low.
|
|
void | emberAfPluginButtonInterfaceButton0HighCallback (void) |
Button0 High.
|
|
void | emberAfPluginButtonInterfaceButton1LowCallback (void) |
Button1 Low.
|
|
void | emberAfPluginButtonInterfaceButton1HighCallback (void) |
Button1 High.
|
Detailed Description
These callbacks are contributed by the Button Interface plugin.
Function Documentation
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
|
||
) |
This function returns the number of times a button was short pressed.
- Parameters
-
timePressedMs
Amount of time button 0 was pressed. Ver.: always pressedAtReset
Was the button pressed at startup. Ver.: always
void emberAfPluginButtonInterfaceButton0PressedShortCallback | ( | uint16_t |
timePressedMs
|
) |
This function returns the number of times a button was short pressed.
- Parameters
-
timePressedMs
Time (in ms) button 0 was pressed Ver.: always
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
|
||
) |
This function returns the number of times a button was short pressed.
- Parameters
-
timePressedMs
Amount of time button 1 was pressed. Ver.: always pressedAtReset
Was the button pressed at startup. Ver.: always
void emberAfPluginButtonInterfaceButton1PressedShortCallback | ( | uint16_t |
timePressedMs
|
) |
This function returns the number of times a button was short pressed.
- Parameters
-
timePressedMs
Time (in ms) button 1 was pressed Ver.: always
void emberAfPluginButtonInterfaceButton1PressingCallback | ( | void |
|
) |
This function is periodically called when button 1 is being pressed.