Has anyone had success putting the processor in sleep mode using an input pin? From the information provided, it appears that I should be able to do this using D0 - D3. The example shown on the getting started page puts it to sleep but when you try to wake it up the processor enters a cycle between sleep and wake modes. I need the processor to stay awake until the input changes states.
For example, how about the following example that sleeps if the input is LOW?
if(INPUTPIN == LOW) {
esp_deep_sleep_start();
}