-->
Page 1 of 1

Deep sleep external trigger question

PostPosted: Sat May 02, 2015 4:48 am
by caquino
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

Re: Deep sleep external trigger question

PostPosted: Sat May 02, 2015 12:07 pm
by Mikejstb
I'm also interested in the answer to this.
My variation of the question is - is there a way to know what woke up the module?
Was it the watch-dog, or was it an interrupt on gpio16?