Created
February 10, 2021 12:29
-
-
Save elktros/133aa49ae7f4a403291f3ddbbcf4e4cb to your computer and use it in GitHub Desktop.
Test Code for ESP8266 Deep Sleep Mode Demo with External 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() | |
{ | |
//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