Skip to content

Instantly share code, notes, and snippets.

@elktros
Created February 10, 2021 12:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elktros/4fab6adeb8f82fe64dd3242ea5c4483c to your computer and use it in GitHub Desktop.
Save elktros/4fab6adeb8f82fe64dd3242ea5c4483c to your computer and use it in GitHub Desktop.
Test Code for ESP8266 Deep Sleep Mode with Automatic (Timer) Wake-up.
#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 */
}
@Awabmoh
Copy link

Awabmoh commented Oct 2, 2022

Hi, In my side the esp can't wake up a gaine. any command can help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment