Skip to content

Commit 704add4

Browse files
committed
Simplify example
1 parent 20cc1ba commit 704add4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/WakeFromPin/WakeFromPin.ino

+2-3
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ void setup(){
7575
lowPower.enableWakeupFromPin(WAKE_PIN, FALLING);
7676

7777
pinMode(LED_BUILTIN, OUTPUT);
78-
digitalWrite(LED_BUILTIN, LOW); // Turn the built-in LED on to indicate the device is awake
7978

8079
#ifdef TURN_PERIPHERALS_OFF
8180
PMIC.begin();
@@ -85,10 +84,10 @@ void setup(){
8584

8685
void loop(){
8786
// Blink the built-in LED every 500ms when the device is not sleeping
88-
digitalWrite(LED_BUILTIN, HIGH);
89-
delay(500);
9087
digitalWrite(LED_BUILTIN, LOW);
9188
delay(500);
89+
digitalWrite(LED_BUILTIN, HIGH);
90+
delay(500);
9291
}
9392

9493

0 commit comments

Comments
 (0)