Skip to content

Commit 3bf0e45

Browse files
author
brentru
committed
adding deepsleep
1 parent 5d06e4e commit 3bf0e45

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/adafruitio_19_deepsleep/adafruitio_19_deepsleep.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include "config.h"
1919

2020
/************************ Example Starts Here *******************************/
21-
#define DEEPSLEEP_DURATION 20e4
21+
#define DEEPSLEEP_DURATION 20e6
2222

2323
void setup() {
2424
// start the serial connection
@@ -37,8 +37,8 @@ void setup() {
3737
// let's go back to sleep for DEEPSLEEP_DURATION seconds...
3838
Serial.println("sleeping...");
3939
// Put the Huzzah into deepsleep for DEEPSLEEP_DURATION
40-
// NOTE: Make sure Pin 16 is connected to
41-
ESP.deepSleep(DEEPSLEEP_DURATION);
40+
// NOTE: Make sure Pin 16 is connected to RST
41+
ESP.deepSleep(1000000 * 2);
4242
}
4343

4444
// NOOP

0 commit comments

Comments
 (0)