Created
February 10, 2021 12:27
-
-
Save elktros/4fab6adeb8f82fe64dd3242ea5c4483c to your computer and use it in GitHub Desktop.
Test Code for ESP8266 Deep Sleep Mode with Automatic (Timer) Wake-up.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define ledPin 2 /**/ | |
void setup() | |
{ | |
pinMode(ledPin, OUTPUT); | |
digitalWrite(ledPin, HIGH); | |
} | |
void loop() | |
{ | |
digitalWrite(ledPin, LOW); | |
delay(5000); | |
ESP.deepSleep(5e6); /* Sleep for 5 seconds */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, In my side the esp can't wake up a gaine. any command can help