Programmatic deep sleep connection
Posted: 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:
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?
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);
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?