01 Overview
Light sleep keeps more peripherals/RAM. Wake is faster; current is higher than deep sleep.
- Use when: you need quicker response but still care about energy.
- Skip when: a coin cell must last months — deep sleep usually wins.
Battery and sleep
Faster wake than deep sleep, with more state kept.
Official path: examples/system/light_sleep
Light sleep keeps more peripherals/RAM. Wake is faster; current is higher than deep sleep.
1. Configure wake sources.
2. Enter light sleep.
3. Resume tasks without a full app_main restart (unlike deep sleep).
中文
电池与休眠
要比深睡更快醒来时用。状态可保留得更多。
官方路径: examples/system/light_sleep
浅睡保留更多外设/内存,唤醒更快,电流高于深睡。
1. 配置唤醒源。
2. 进入 light sleep。
3. 醒来后继续任务,不必整机重跑 app_main(与深睡不同)。