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

@@ -69,6 +69,12 @@ esp_err_t i2c_relays_sleep(void);
esp_err_t i2c_poll_buttons();
/* Live, un-debounced read of a single button bit via NCA9535 INPUT0.
* Use only when the polled debounced state isn't trustworthy — e.g.
* cold-boot factory-reset detection, or before deep sleep when we want
* to clear the NCA9535 INT line as a side effect. */
bool i2c_button_held_raw(uint8_t button);
bool i2c_get_button_tripped(uint8_t button);
bool i2c_get_button_released(uint8_t button);
bool i2c_get_button_state(uint8_t button);