I'm using a Seeed Studio XIAO NRF52840 SENSE board that has a LSM6DS IMU on-board.
This IMU is powered from a GPIO pin on the NRF52840 MCU.
I'd like to have the IMU be able to wake the board from deep-sleep using an alarm.pin.PinAlarm
.
It works OK for waking from light sleep, but the GPIOs are turned off during deep sleep.
It appears that it is possible to maintain GPIO states (and also to wake from pin changes) during sleep states in this MCU.