Skip to content

Instantly share code, notes, and snippets.

@elktros
Created February 10, 2021 12:29
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/133aa49ae7f4a403291f3ddbbcf4e4cb to your computer and use it in GitHub Desktop.
Save elktros/133aa49ae7f4a403291f3ddbbcf4e4cb to your computer and use it in GitHub Desktop.
Test Code for ESP8266 Deep Sleep Mode Demo with External Wake-up.
#define ledPin 2 /**/
void setup()
{
//Serial.begin(115200); /* Initialize serial communication at 115200 */
pinMode(ledPin, OUTPUT);
digitalWrite(ledPin, HIGH);
}
void loop()
{
digitalWrite(ledPin, LOW);
delay(5000);
ESP.deepSleep(0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment