MCPcopy Create free account
hub / github.com/bmorcelli/Launcher / powerOff

Function powerOff

boards/m5stack-cplus2/interface.cpp:70–74  ·  view source on GitHub ↗

** Function: powerOff ** location: mykeyboard.cpp ** Turns off the device (or try to) **********************************************************************/

Source from the content-addressed store, hash-verified

68** Turns off the device (or try to)
69**********************************************************************/
70void powerOff() {
71 launcherGpioWrite(4, LOW);
72 esp_sleep_enable_ext0_wakeup((gpio_num_t)UP_BTN, LOW);
73 esp_deep_sleep_start();
74}
75
76/*********************************************************************
77** Function: checkReboot

Callers

nothing calls this directly

Calls 1

launcherGpioWriteFunction · 0.85

Tested by

no test coverage detected