Seeed ESP32S3 - enable button sleep, stopRadio at sleep

to sleep sx1262 also.
This commit is contained in:
Kevin Brosius 2025-02-23 18:52:17 -05:00
parent c3fe3713b0
commit cbedd72993
3 changed files with 13 additions and 8 deletions

View file

@ -1612,7 +1612,7 @@ void loop() {
void sleep_now() {
#if HAS_SLEEP == true
#if PLATFORM == PLATFORM_ESP32
#if BOARD_MODEL == BOARD_T3S3
#if BOARD_MODEL == BOARD_T3S3 || BOARD_MODEL == BOARD_SEEED_XIAO_ESP32S3
display_intensity = 0;
update_display(true);
#endif
@ -1626,6 +1626,7 @@ void sleep_now() {
delay(100);
}
#endif
stopRadio();
esp_sleep_enable_ext0_wakeup(PIN_WAKEUP, WAKEUP_LEVEL);
esp_deep_sleep_start();
#elif PLATFORM == PLATFORM_NRF52