I’m trying to use Sleep with an interrupt for wake. The Photon does go to sleep just fine, but when I trigger the interrupt to wake, it immediately flashes red and resets. That may work for my application, but I don’t really want to make the user wait for the reset to complete.
I’m also not clear from the docs on what actually happens during sleep and wake. Should execution resume right after the sleep function, as if the Photon had not gone to sleep?
If it matters, I’m also using the sleep interrupt pin with a regular interrupt (it’s a line from a touch screen). I have tried to detachInterrupt before using it for sleep, but that didn’t seem to matter.
I’m not sure where I should be looking to find out why it would crash on wake.