Sometimes I need to have the system sleep and wakeup on the WKP pin, other times I need to have it deep sleep until a timeout occurs, in which case I do NOT want it waking up on the WKP pin (the WKP pin is attached to an accelerometer interrupt and I need some periods in deep sleep whatever the world is doing to save power).
I had thought that System.sleep(SLEEP_MODE_DEEP, sleepTime)
would sleep and wake-up with a reset at the given time, however it appears to react to the WKP pin as well.
How can I achieve deep sleep irrespective of external interrupts?
Rob