feat: mcp sleep
This commit is contained in:
@ -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:
|
||||
|
||||
BIN
main/boards/zhengchen-cam/custom-emojis/gif/flylove.gif
Normal file
BIN
main/boards/zhengchen-cam/custom-emojis/gif/flylove.gif
Normal file
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 |
BIN
main/boards/zhengchen-cam/custom-emojis/gif/neutralbak.gif
Normal file
BIN
main/boards/zhengchen-cam/custom-emojis/gif/neutralbak.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 549 KiB |
BIN
main/boards/zhengchen-cam/custom-emojis/gif/wakeup.gif
Normal file
BIN
main/boards/zhengchen-cam/custom-emojis/gif/wakeup.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 417 KiB |
Reference in New Issue
Block a user