Deep sleep external trigger question
Posted: Sat May 02, 2015 4:48 am
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
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