Button Interface Callbacks
These callbacks are contributed by the Button Interface plugin.
Functions#
Called when Button 0 is pressed short.
Called when Button 1 is pressed short.
Called when Button 0 is pressed long.
Called when Button 1 is pressed long.
Called while Button 0 is pressed.
Called while Button 1 is pressed.
Called when Button 0 goes low.
Called when Button 0 goes high.
Called when Button 1 goes low.
Called when Button 1 goes high.
Function Documentation#
emberAfPluginButtonInterfaceButton0PressedShortCallback
void emberAfPluginButtonInterfaceButton0PressedShortCallback (uint16_t timePressedMs)
Called when Button 0 is pressed short.
N/A | timePressedMs | Time (in ms) button 0 was pressed short |
264
of file ./app/ncp/doc/callback.doc
emberAfPluginButtonInterfaceButton1PressedShortCallback
void emberAfPluginButtonInterfaceButton1PressedShortCallback (uint16_t timePressedMs)
Called when Button 1 is pressed short.
N/A | timePressedMs | Time (in ms) button 1 was pressed short |
272
of file ./app/ncp/doc/callback.doc
emberAfPluginButtonInterfaceButton0PressedLongCallback
void emberAfPluginButtonInterfaceButton0PressedLongCallback (uint16_t timePressedMs, bool pressedAtReset)
Called when Button 0 is pressed long.
N/A | timePressedMs | Amount of time button 0 was pressed. |
N/A | pressedAtReset | Was the button pressed at startup. |
281
of file ./app/ncp/doc/callback.doc
emberAfPluginButtonInterfaceButton1PressedLongCallback
void emberAfPluginButtonInterfaceButton1PressedLongCallback (uint16_t timePressedMs, bool pressedAtReset)
Called when Button 1 is pressed long.
N/A | timePressedMs | Amount of time button 1 was pressed. |
N/A | pressedAtReset | Was the button pressed at startup. |
291
of file ./app/ncp/doc/callback.doc
emberAfPluginButtonInterfaceButton0PressingCallback
void emberAfPluginButtonInterfaceButton0PressingCallback (void )
Called while Button 0 is pressed.
N/A |
This function is periodically called when button 0 is being pressed.
301
of file ./app/ncp/doc/callback.doc
emberAfPluginButtonInterfaceButton1PressingCallback
void emberAfPluginButtonInterfaceButton1PressingCallback (void )
Called while Button 1 is pressed.
N/A |
This function is periodically called when button 1 is being pressed.
310
of file ./app/ncp/doc/callback.doc
emberAfPluginButtonInterfaceButton0LowCallback
void emberAfPluginButtonInterfaceButton0LowCallback (void )
Called when Button 0 goes low.
N/A |
This function is called when the GPIO tied to button zero goes low
319
of file ./app/ncp/doc/callback.doc
emberAfPluginButtonInterfaceButton0HighCallback
void emberAfPluginButtonInterfaceButton0HighCallback (void )
Called when Button 0 goes high.
N/A |
This function is called when the GPIO tied to button zero goes high
328
of file ./app/ncp/doc/callback.doc
emberAfPluginButtonInterfaceButton1LowCallback
void emberAfPluginButtonInterfaceButton1LowCallback (void )
Called when Button 1 goes low.
N/A |
This function is called when the GPIO tied to button one goes low
337
of file ./app/ncp/doc/callback.doc
emberAfPluginButtonInterfaceButton1HighCallback
void emberAfPluginButtonInterfaceButton1HighCallback (void )
Called when Button 1 goes high.
N/A |
This function is called when the GPIO tied to button one goes high
346
of file ./app/ncp/doc/callback.doc