Programmatic deep sleep connection

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
brucehvn
New user
Posts: 1
Joined: 24 Dec 2017, 00:22

Programmatic deep sleep connection

#1 Post by brucehvn » 29 Dec 2017, 00:52

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?

TD-er
Core team member
Posts: 9902
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Programmatic deep sleep connection

#2 Post by TD-er » 29 Dec 2017, 12:07

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 :)

Post Reply

Who is online

Users browsing this forum: No registered users and 28 guests