Hi,
Thanks!
That was a solution for me.
nrf_gpio_cfg_sense_input(digitalPinToPinName(int1Pin), NRF_GPIO_PIN_PULLDOWN, NRF_GPIO_PIN_SENSE_HIGH);
part of setup
// Attach interrupt signal from myIMU for wake up function
pinMode(int1Pin, INPUT_PULLDOWN);
// Attach interrupt to the IMU
attachInterrupt(digitalPinToInterrupt(int1Pin), int1ISR, RISING);
// Attach interrupt to the IMU for wakeups
nrf_gpio_cfg_sense_input(digitalPinToPinName(int1Pin), NRF_GPIO_PIN_PULLDOWN, NRF_GPIO_PIN_SENSE_HIGH);
setupDoubleTapInterrupt();
and my goToPoweOff
void goToPowerOff() {
Serial.println("Going to System OFF");
// Delay to allow serial to print
delay(500);
// Trigger System OFF
NRF_POWER->SYSTEMOFF = 1;
}