Skip to content

Commit 0f9ac3e

Browse files
author
Alrik Vidstrom
committed
Improve Standby Mode example
Adds how to go into Standby Mode waiting for only a wakeup pin.
1 parent 9d7f49b commit 0f9ac3e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

examples/Standby/Standby.ino

+6-1
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,13 @@ void setup() {
127127

128128
#if defined CORE_CM7
129129
LowPower.standbyM7(LowPowerStandbyType::untilPinActivity | LowPowerStandbyType::untilTimeElapsed, 10_s);
130-
// The following is an alternative way to go into standby for 10 seconds
130+
//
131+
// The following is an alternative way to go into Standby Mode for 10 seconds:
131132
// LowPower.standbyM7(LowPowerStandbyType::untilTimeElapsed, RTCWakeupDelay(0, 0, 10));
133+
//
134+
// The following is how to go to into Standby Mode waiting only for a wakeup pin:
135+
// LowPower.standbyM7(LowPowerStandbyType::untilPinActivity);
136+
//
132137
#else
133138
LowPower.standbyM4();
134139
#endif

0 commit comments

Comments
 (0)