feat: mcp sleep

This commit is contained in:
0Xiao0
2026-06-17 11:16:45 +08:00
parent 6a66014a19
commit 154ce461d7
10 changed files with 153 additions and 17 deletions

View File

@ -26,13 +26,28 @@ Recommended minimum set:
- `sad`
- `angry`
Fatigue reminder:
- Add `wakeup.gif` or `wakeup.png` to make the idle-fatigue reminder show a custom idol animation.
- The reminder defaults to `wakeup` after 12 seconds of idle time or listening silence, then waits 60 seconds before it can trigger again.
- Optional NVS settings in namespace `fatigue`:
- `enabled` (`bool`, default `true`)
- `idle_timeout_sec` (`int`, default `12`)
- `listening_timeout_sec` (`int`, default `12`)
- `cooldown_sec` (`int`, default `60`)
- `emotion` (`string`, default `wakeup`)
- `message` (`string`, default Chinese wake-up line)
- `sound_asset` (`string`, optional OGG filename in the assets partition)
If an emotion-specific image is missing, the firmware falls back to `neutral`
before using the built-in icon.
For Zhengchen CAM boards, the build selects one subdirectory:
For Zhengchen CAM boards, the build packages both subdirectories:
- `CONFIG_ZHENGCHEN_CAM_USE_GIF_EMOJI=y`: use `gif/`
- unset `CONFIG_ZHENGCHEN_CAM_USE_GIF_EMOJI`: use `png/`
- Put static/default faces in `png/`, such as `png/neutral.png`.
- Put animated/special actions in `gif/`, such as `gif/wakeup.gif`.
- If both folders contain the same emotion name, PNG wins. For example,
`png/neutral.png` is used before `gif/neutral.gif`.
After adding or replacing files, run a full flash so the assets partition is
updated:

Binary file not shown.

After

Width:  |  Height:  |  Size: 549 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 549 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 549 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 417 KiB