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

Button event on NRF_GPIO_PIN_MAP(1, X)

I am using a nRF52840 PDK and trying to config 8 buttons.

(1) GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS to 8 (sdk_config.h)

(2) Add buttons define (pca10056.h)

Button event handler can trigger in P0.XX (e.g. XX is 3 or 4). But the event never trigger in P1.YY (e.g. 2 or 7)

Can I use P1.YY as a button??

#define BUTTON_7 NRF_GPIO_PIN_MAP(1,7)

Thanks.

Parents Reply Children
No Data
Related