We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b59b709 commit 8166a9aCopy full SHA for 8166a9a
examples/DeepSleep_WakeFromRTC_C33/DeepSleep_WakeFromRTC_C33.ino
@@ -11,9 +11,10 @@ Board board;
11
Charger charger;
12
13
void setup() {
14
+ pinMode(LED_BUILTIN, OUTPUT);
15
+ digitalWrite(LED_BUILTIN, LOW);
16
+
17
RTC.begin();
-
- digitalWrite(LED_BUILTIN, digitalRead(LED_BUILTIN));
18
19
manager = PowerManagement();
20
manager.begin();
@@ -25,10 +26,12 @@ void setup() {
25
26
27
if (!RTC.isRunning()) {
28
RTC.setTime(initial_time);
- board.sleepFor(0, 0, 1);
29
}
30
31
- pinMode(LED_BUILTIN, OUTPUT);
+ digitalWrite(LED_BUILTIN, HIGH);
32
+ board.sleepFor(0, 0, 10);
33
34
+ // Turn LED on to indicate the board is awake
35
digitalWrite(LED_BUILTIN, LOW);
36
37
0 commit comments