I'm using a pin for trigger switch input with the following codes
nrf_drv_gpiote_in_config_t in_config = GPIOTE_CONFIG_IN_SENSE_HITOLO(true);
in_config.pull = NRF_GPIO_PIN_PULLUP;
err_code = nrf_drv_gpiote_in_init(TRG, &in_config, in_pin_handler);
APP_ERROR_CHECK(err_code);
nrf_drv_gpiote_in_event_enable(TRG, true);
My foundation is the characteristics tutorial. I just added above lines to set up interrupt. I tried a few pins other than 13-16, the application seemed to be running. But when I used any of the above 4 pins, there was no advertising at all. I tried on both 52DK and BMD-300 module. I realized those 4 pins are connected to 4 push buttons on 52DK. I have 2 questions:
- Is there any way to reuse those 4 pins on 52DK?
- There are no buttons connected by default on BMD-300 module, why couldn't I use those 4 pins either? Is there any setting in the code?
Thanks