** Function: powerOff ** location: mykeyboard.cpp ** Turns off the device (or try to) **********************************************************************/
| 68 | ** Turns off the device (or try to) |
| 69 | **********************************************************************/ |
| 70 | void 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 |
nothing calls this directly
no test coverage detected