mirror of
https://github.com/pelgraine/Meck.git
synced 2026-05-03 12:02:37 +02:00
UITask shutdown (already occurs/unchanged): 1. BLE disabled (_serial->disable()). 2. WiFi disconnected + WIFI_OFF. 3. 4G modem shutdown(). 4. GPS power cut (PIN_GPS_EN LOW). 5. LoRa radio powerOff() (standby mode). 6. Display turnOff(). TDeckBoard::powerOff() (new): 7. btStop() -- BLE controller stop. 8. Peripheral power OFF (PIN_PERF_POWERON LOW) -- keyboard, BQ27220, sensors. 9. LoRa module power OFF (P_LORA_EN LOW) -- cuts power entirely. 10. Hold LoRa NSS high (prevents SX1262 drawing current from floating CS). 11. esp_deep_sleep_start() -- CPU halts, ~10-40uA. Wake (reset button or USB power-on): 12. ESP32-S3 cold boots. 13. TDeckBoard::begin() runs: peripheral power ON, I2C init, LoRa power ON, NSS hold released. 14. App starts fresh -- prefs/contacts/messages load from flash. No LoRa wake during hibernate -- the device is truly off. Only a hardware reset (reset button) or USB power-on wakes the device.