user48051: I have a button with two isolated tracks. I want to be able to wake up esp from deepSleep with this button, and also detect that it was clicked. So i can't connect it to reset, because esp won't work if i don't release a button. And if it's not at deepSleep, it will reset, and i don't want it. How to do this?

user-1: Use some other pin to hold RESET HIGH or to disconnect the button from RESET while the esp8266 is not running.

simulate this circuit – Schematic created using CircuitLab
I asked on EE SE for the missing part of the circuit.

48051: <p>I have a button with two isolated tracks. I want to be able to wake up esp from deepSleep with this button, and also detect that it was clicked. So i can't connect it to reset, because esp won't work if i don't release a button. And if it's not at deepSleep, it will reset, and i don't want it. How to do this?</p>
 -1: <p>Use some other pin to hold RESET HIGH or to disconnect the button from RESET while the esp8266 is not running.</p>



<p><img src="https://i.stack.imgur.com/WsUCH.png" alt="schematic"></p>



<p><sup><a href="/plugins/schematics?image=http%3a%2f%2fi.stack.imgur.com%2fWsUCH.png">simulate this circuit</a> &ndash; Schematic created using <a href="https://www.circuitlab.com/" rel="nofollow">CircuitLab</a></sup></p>

<p><a href="https://electronics.stackexchange.com/questions/404458/button-which-wakes-up-the-esp8266-from-deep-sleep-but-can-be-used-as-common-but">I asked on EE SE</a> for the missing part of the circuit.</p>
