Reputation: 35
I am asking for help, how can I WEMOS D1 wake up with the button? I know how to do this after some time using:
ESP.deepSleep (180000000)
Please help.
Upvotes: 0
Views: 1798
Reputation: 1050
Just put your button between RST and GND. Pressing the button will reset (and therefor wake up) the Esp ...
Upvotes: 1
Reputation: 111
https://nodemcu.readthedocs.io/en/master/modules/node/#nodedsleep
This function can only be used in the condition that esp8266 PIN32(RST) and PIN8(XPD_DCDC aka GPIO16) are connected together. Using sleep(0) will set no wake up timer, connect a GPIO to pin RST, the chip will wake up by a falling-edge on pin RST.
Upvotes: 0