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 71ceedc commit 5456a1fCopy full SHA for 5456a1f
examples/ExternalWakeup/ExternalWakeup.ino
@@ -21,6 +21,8 @@ const int pin = 8;
21
22
void setup() {
23
pinMode(LED_BUILTIN, OUTPUT);
24
+ // Set pin 8 as INPUT_PULLUP to avoid spurious wakeup
25
+ pinMode(pin, INPUT_PULLUP);
26
// Attach a wakeup interrupt on pin 8, calling repetitionsIncrease when the device is woken up
27
LowPower.attachInterruptWakeup(pin, repetitionsIncrease, CHANGE);
28
}
0 commit comments