3.1 ESP32 Deep Sleep
ESP32 Deep Sleep
Power Mode
- Active mode
- Modem Sleep mode
- Light Sleep mode
- Deep Sleep mode
- Hibernation mode
Wake Up Sources
- Timer
- Touch pins
- ULP co-processor
- external wake up
Timer Wake Up
time_in_us <- microSeconds
5㎲ * 1,000,000 = 5 s
RTC memory
Deep Sleep start
Touch Wake UP
Sensitivity
Get touchPin status
T0 ~ T9
Setup touch interrupt
T3 -> GPIO15
callback function
- asleep -> not working
- awake -> hold the touchPin -> working
Confirm touch
External Wake Up
BitMask
bitmask -> Pin binary registry -> hex
ext0
onePin and (HIGH or LOW)
ext1
BITMASK -> Serveral Pins
ESP_EXT1_WAKEUP_ANY_HIGH -> Press any button to High
Leave a comment