nRF Connect SDK API 2.8.99
|
int dk_buttons_init | ( | button_handler_t | button_handler | ) |
#include <include/dk_buttons_and_leds.h>
Initialize the library to read the button state.
button_handler | Callback handler for button state changes. |
0 | If the operation was successful. Otherwise, a (negative) error code is returned. |