nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ dk_button_handler_add()

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.

Parameters
[in]handlerHandler structure. Must point to statically allocated memory.