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

How do I interface external IO pins when app_button is used?

I would like to support app_button, however I need to configure a pin as NOPULL and trigger on a low to high transition without debouncing.

I don't see a way this can co-exist with the app_button modile. I tried using nrf_drv_gpiote but was confused when it would not let me register new event handlers.

What is the recommended way of interfacing external interrupts with an application already using app_button?

-- Is this sufficient if I use the gpiote merge fix to use both app_gpiote and nrf_drv_gpiote?

	APP_GPIOTE_INIT(2);
	app_gpiote_user_register(&userid, (1<<16), 0, evt_hdl);
	app_gpiote_user_enable(userid);
Related