I’m currently working on a project, where if a button is normally pressed down mechanically, but when it is released, it should wake up the Photon. While this would normally cause a falling edge, the wiring diagram is as follows to make sure that the pressed state is low and the released state is high:
With this schematic, what should happen is that when the button is released, a rising edge signal is sent to the WKP pin, which should wake the Photon from standby mode. However, this is not happening.
In one test I did, I created a timeout function that put the Photon to standby mode after ten seconds. Leading up to the ten second mark, I held down the button, so it should be at a low signal. After the ten second mark, when the device was put to sleep by a timeout function, I released the button, which means that the signal should be at high. While this rising edge should cause the Photon to wake up, nothing happened.
Thanks in advance for all your help.