This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

app_button_init undefined (SDK 12.2)

I got this error when trying to use the button library to debounce noisy buttons. My application is a peripheral. When I looked in the library source I saw

#if NRF_MODULE_ENABLED(BUTTON).

As that is not defined anywhere the build doesn't compile the necessary code.

My question: what is this for and where should it be defined? (I tried commenting out the check but that causes the program to crash on reset.)

(Same problem with app_timer which is also needed for this.)

Related