Skip to content

Commit 287b1b4

Browse files
authored
Merge pull request #173 from asukiaaa/patch-1
Use powerOFF on powerOFF example
2 parents ed423d9 + 86bc4fa commit 287b1b4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

examples/Basics/PowerOFF/PowerOFF.ino

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,13 @@ void setup(){
99
// Lcd display
1010
M5.Lcd.println("This is software power off demo");
1111
M5.Lcd.println("Press the button A to power off.");
12-
13-
// Set the wakeup button
14-
M5.Power.setWakeupButton(BUTTON_A_PIN);
1512
}
1613

1714
// the loop routine runs over and over again forever
1815
void loop() {
1916

2017
if(M5.BtnA.wasPressed()) {
21-
M5.Power.deepSleep();
18+
M5.Power.powerOFF();
2219
}
2320

2421
M5.update();

0 commit comments

Comments
 (0)