Page 1 of 1

Programmatic deep sleep connection

Posted: 29 Dec 2017, 00:52
by brucehvn
I'm new to ESPEasy but I've done a little ESP8266 stuff in the past as well as a lot of Arduino projects. I want to create some sensors and other things that will be battery operated. I've seen already that in order to use the deep sleep function of ESPEasy, GPIO16 must be connected to RST. In most cases I see people then talk about physically connecting GPIO16 to RST on their boards.

Then I ran into some code for the WeMos D1 mini where they appear to be making that connection programmatically instead of physically. The code is here.

The relevant piece seems to be this:

Code: Select all

  // Connect D0 to RST to wake up
  pinMode(D0, WAKEUP_PULLUP);
On the D1 mini, evidently D0 is GPIO16.

So my question is if this is possible, could I create a fork of ESPEasy and add that for whatever board I'm using (if it allows it), and not have to physically solder a wire?

Re: Programmatic deep sleep connection

Posted: 29 Dec 2017, 12:07
by TD-er
That sounds like a good addition to ESPeasy, if it really works.
I think it sounds like a valid option, which would likely work on any ESP board.
Of course you can try it yourself and/or create an issue at the github site, or create a pull request if you already fixed it :)