cendev wrote:joe wrote:You can find the definition of it in include/gpio.h of the sdk
void gpio_pin_wakeup_enable(uint32 i, GPIO_INT_TYPE intr_state);
It is also defined in the loader
eagle.rom.addr.v6.ld:PROVIDE ( gpio_pin_wakeup_enable = 0x40004e90 );
Is it possible that you have tried that by any chance? I really wonder if that works
I haven't played with it yet but I did put a couple of Lua test commands in a few days ago and hope to find time to check them out this weekend.
But after having read this thread, I don't understand very well what must be done to achieve this.
Is this enough to use such code:
gpio_pin_wakeup_enable(GPIO_ID_PIN(myGpioId), GPIO_PIN_INTR_NEGEDGE);
for waking up my esp-03 from its deep_sleep(0) state,
or must I connect the GPIO pin to RST pin as well?
This is not very clear for me what I have to do. Are both method needed, or only the first is enough???
Thx
LOUIS
My story: i try to weakup the ESP-01 from sleep with a button - but i have to measure the time the button is pressed after it weakes up.
short press: esp wakes up
3secs press: esp wakes up and opens AP...
with the button wired to pull down RST & GPIO0 the esp wouldnt boot.
I'm on Arduino IDE....
is there any solution?