WEMOS D1按键唤醒

WEMOS D1 wake up by button

求助,WEMOS D1怎么按键唤醒?一段时间后我知道如何使用:

ESP.deepSleep (180000000)

请帮忙。

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.

只需将按钮放在 RST 和 GND 之间。按下按钮将重置(并因此唤醒)Esp ...