Photon WKP Pin Interupt Flag Question

Hey @Jseiler,

There are some problems with the wake up pins. Last week I finally succeed to wake up the Photon with Motion sensor and Time. You can get the code from here.

To check if the wake up is from the pin or the time you can do 2 things:

  1. Connect the Motion sensor output to 2 pins in parallel - WKP and D3 for example and if the Photon wake up and D3 is HIGH then it woke up from the Motion.
  2. You can also make the Photon send the results exactly on specific time by getting the time now and calculate the seconds till what you want (you won’t be sure it’s not the motion sensor but if it’s in the middle of the night, maybe it’s good enough).

Good Luck.