We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d06e4e commit 3bf0e45Copy full SHA for 3bf0e45
examples/adafruitio_19_deepsleep/adafruitio_19_deepsleep.ino
@@ -18,7 +18,7 @@
18
#include "config.h"
19
20
/************************ Example Starts Here *******************************/
21
-#define DEEPSLEEP_DURATION 20e4
+#define DEEPSLEEP_DURATION 20e6
22
23
void setup() {
24
// start the serial connection
@@ -37,8 +37,8 @@ void setup() {
37
// let's go back to sleep for DEEPSLEEP_DURATION seconds...
38
Serial.println("sleeping...");
39
// Put the Huzzah into deepsleep for DEEPSLEEP_DURATION
40
- // NOTE: Make sure Pin 16 is connected to
41
- ESP.deepSleep(DEEPSLEEP_DURATION);
+ // NOTE: Make sure Pin 16 is connected to RST
+ ESP.deepSleep(1000000 * 2);
42
}
43
44
// NOOP
0 commit comments