WKP pin in photon as GPIO & WKP (Answered)

Hi,

Q: If I want to use the WKP pin as a deep sleep wake up pin (rising), can I also use it to read the value of the pin (high - low).

Let’s say I go to deep sleep mode and when I get awake I want to know if the pin is high or low (the WKP pin) can it also be used as an input?

Yes, I do this with my asset tracker wake on move example. The accelerometer can be configured to latch the output high, so I’m able to read it after waking up to see if that’s what caused the wakeup, then reset it. I just use an ordinary digitalRead(WKP).

3 Likes

Awesome! Thanks!

Thanks for the help @rickkas7!