可以在源代码中修改喵伴设备各个状态下的表情吗?
Moderator: ESP_Rachel
Re: 可以在源代码中修改喵伴设备各个状态下的表情吗?
你好,
表情 UI 绘制是基于 [image_player ](https://components.espressif.com/compon ... 1.1/readme) 组件绘制的,无需用到 lvgl,但是目前定制的灵活性上有一定限制,后续会更新更灵活的表情框架,可以先参考下面的步骤替换已有资源素材:
1. 要求:
3. 重新编译烧录即可
表情 UI 绘制是基于 [image_player ](https://components.espressif.com/compon ... 1.1/readme) 组件绘制的,无需用到 lvgl,但是目前定制的灵活性上有一定限制,后续会更新更灵活的表情框架,可以先参考下面的步骤替换已有资源素材:
1. 要求:
- 源文件为 GIF 格式。
- 尺寸与工程里保持一致,emotion 为 `284x126`,icon 为 `64x64`。
- 文件名和数量与工程里保持一致,仅对已有素材进行替换,而非增减。
Code: Select all
// emotion
python <brookesia_path>/products/speaker/managed_components/espressif2022__image_player/script/gif_to_aaf.py <brookesia_path>/core/brookesia_core/docs/_static/assets/animations/emotion <brookesia_path>/core/brookesia_core/systems/speaker/assets/animations/emotion --split 126 --depth 8
// icon
python <brookesia_path>/products/speaker/managed_components/espressif2022__image_player/script/gif_to_aaf.py <brookesia_path>/core/brookesia_core/docs/_static/assets/animations/icon <brookesia_path>/core/brookesia_core/systems/speaker/assets/animations/icon--split 64 --depth 8
Who is online
Users browsing this forum: No registered users and 1 guest
