Hi,
I am new in this area. I wanted to use the detect "signal" but it doesn't work as protected. This is my main :
uint32_t pin = 25;
uint32_t led3 = 15;
//nrf_gpio_cfg(led3, NRF_GPIO_PIN_DIR_OUTPUT, NRF_GPIO_PIN_INPUT_CONNECT, NRF_GPIO_PIN_PULLUP, NRF_GPIO_PIN_S0S1, NRF_GPIO_PIN_SENSE_LOW);
nrf_gpio_cfg_output(led3);
nrf_gpio_pin_clear(led3);
nrf_gpio_cfg(pin, NRF_GPIO_PIN_DIR_INPUT, NRF_GPIO_PIN_INPUT_CONNECT, NRF_GPIO_PIN_PULLUP, NRF_GPIO_PIN_S0S1, NRF_GPIO_PIN_SENSE_LOW);
for (;;)
{
if(NRF_GPIOTE->EVENTS_PORT != 0){
nrf_gpio_pin_toggle(led3);
NRF_GPIOTE->EVENTS_PORT = 0;
}
(void)sd_app_evt_wait();
}
I just try to detect when the detect signal is HIGH. Normally the pin 25 goes HIGH when I press the Button 4. But the result is that the NRF_GPIOTE->EVENTS_PORT is always LOW.
Thanks for your help.
Elias