Startup() macro not running when waking Electron from sleep()

@peekay123 - confirmed, putting the device into SLEEP_MODE_DEEP instead of STOP triggered the reset and ran Startup() as you explained it would. The docs mention that I can use a RISING signal on the WKP pin to wake the device early from Deep Sleep, but it doesn’t seem to work. Very simply changed my sleep call to:

System.sleep(SLEEP_MODE_DEEP,30);

And it runs every 30 seconds and turns my LED on nicely. But my button, which I know is capable of sending a RISING signal to the WKP pin because that’s what it does in Stop mode, doesn’t wake the device as the docs say it should* when I press it. I’m continuing to tinker but I’m not sure what to even tinker with, as its a pretty simple call. :expressionless:

  • from the docs… Note: You can also wake the device “prematurely” by applying a rising edge signal to the WKP pin.

EDIT: I’ve also tried the System.sleep(SLEEP_MODE_DEEP); approach, no dice there either.