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

◆ dk_buttons_init()

int dk_buttons_init ( button_handler_t  button_handler)

#include <include/dk_buttons_and_leds.h>

Initialize the library to read the button state.

Parameters
button_handlerCallback handler for button state changes.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.