What it does
WhenTOUCH_MODE is enabled:
- A short tap schedules the device to start listening (it sets
scheduleListeningRestart = true). - A long press puts the device into deep sleep (it sets
sleepRequested = true).
Enable Tap to Chat
InConfig.h:
TOUCH_MODE is disabled, Elato uses the button wake-up path (esp_sleep_enable_ext0_wakeup) instead.
Touch behavior (from touchTask)
- Touch pad:
TOUCH_PAD_NUM2 - Tap debounce:
TOUCH_DEBOUNCE_DELAY = 500ms - Long press duration:
500ms
Sleep + wake behavior
When going to sleep (enterSleep()), the firmware:
- Stops I2S input/output
- Disconnects the WebSocket cleanly
- Uninstalls I2S drivers
- Enables touch wakeup using:
esp_deep_sleep_start().

