nRF Connect SDK API 2.8.0
|
void dk_button_handler_add | ( | struct button_handler * | handler | ) |
#include <include/dk_buttons_and_leds.h>
Add a dynamic button handler callback.
In addition to the button handler function passed to dk_buttons_init, any number of button handlers can be added and removed at runtime.
[in] | handler | Handler structure. Must point to statically allocated memory. |