Skip to content

Commit 9957eaa

Browse files
committed
Use digital pin for wake up
1 parent 10d4785 commit 9957eaa

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

examples/WakeFromPin/WakeFromPin.ino

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,14 @@
3434

3535
// #define TURN_PERIPHERALS_OFF // Uncomment this line to turn off the peripherals before going to sleep
3636
#define SLEEP_PIN D0 // Pin used to put the device to sleep
37-
#define WAKE_PIN A3 // Pin used to wake up the device
37+
38+
/*
39+
The following pins can be used to wake up the device: A0, A1, A2, A3, A4, A5, D4, D7
40+
However turnPeripheralsOff() in this sketch turns off the power lane of the analog pins.
41+
This means they cannot sink current and therefore cannot be used to wake up the device.
42+
Hency only D4 and D7 can be used to wake up the device in this configuration.
43+
*/
44+
#define WAKE_PIN D4
3845

3946
LowPower lowPower;
4047
bool shouldSleep = false;

0 commit comments

Comments
 (0)