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

app_button_init not use IN_EVENT in SDK 8.1

I'm now using the lastest SDK 8.1. I found that if I call app_button_enable() after app_button_disable(), app_button_enable() would not function again.

But if I changed GPIOTE_CONFIG_IN_SENSE_TOGGLE(false) to GPIOTE_CONFIG_IN_SENSE_TOGGLE(true) in app_button_init(), the app_button_eanble() would function well. I'd like to know the difference between hi_accuracy set to true and false and which one is more power efficient?

And when hi_accuracy set to false, app_button_disable() will call nrf_gpio_input_disconnect(pin). Does this mean buttons would not function even if app_button_enable() called again? If yes, is it reasonable or delibrately?

Thanks a lot!

Related