Skip to content

Commit f211dda

Browse files
authored
Merge pull request #172 from asukiaaa/patch-1
Update poser off example for new api.
2 parents ee73830 + a729ee7 commit f211dda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/Basics/PowerOFF/PowerOFF.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ void setup(){
1111
M5.Lcd.println("Press the button A to power off.");
1212

1313
// Set the wakeup button
14-
M5.setWakeupButton(BUTTON_A_PIN);
14+
M5.Power.setWakeupButton(BUTTON_A_PIN);
1515
}
1616

1717
// the loop routine runs over and over again forever
1818
void loop() {
1919

2020
if(M5.BtnA.wasPressed()) {
21-
M5.powerOFF();
21+
M5.Power.deepSleep();
2222
}
2323

2424
M5.update();

0 commit comments

Comments
 (0)