fix i2c, add deep sleep

This commit is contained in:
Thaddeus Hughes
2026-04-28 12:43:43 -05:00
parent ef1f3e4e85
commit 666750f710
25 changed files with 2163 additions and 1196 deletions

View File

@@ -37,6 +37,12 @@ void soft_idle_exit(void);
bool soft_idle_is_active(void);
bool soft_idle_button_raw(void); /* direct GPIO read, no I2C */
/* Deepest practical sleep with button wake (EXT0 on PIN_BTN_INTERRUPT).
* Discards the saved RTC time (NVS entry erased) — wake boots cold. RTC
* fast/slow memory are powered down too, so RTC_DATA_ATTR globals are lost.
* Does not return. */
void hibernate_enter(void);
/*void adjust_rtc_hour(char *key, int8_t dir);
void adjust_rtc_min(char *key, int8_t dir);*/