Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By caquino
#16269 Hi everyone,


I'm not sure if I correctly understood how to use an external trigger to wake the module.

What I understood is that I need to call the deep sleep function with 0 as argument, which will make the module sleep until a pulse on the RST pin is received.

If my understanding is correctly now I'm puzzled on how to use a single button interface on the module, my idea was to use a single button, with a short press he wakes the module in operation module, with a long press it wakes the module in configuration mode.

But if this button will be connected to the RST pin I don't think it will be possible to identify short/long presses as the module will be reseted no matter what.

Is that any way to do this?

Thanks in advance