forked from xiaozhi/xiaozhi-esp32
feat: add emote_gfx UI for EchoEar (#1022)
* feat: add emote_gfx UI for EchoEar * feat: delete local assets
This commit is contained in:
@@ -24,8 +24,43 @@ idf.py menuconfig
|
||||
|
||||
分别配置如下选项:
|
||||
|
||||
### 基本配置
|
||||
- `Xiaozhi Assistant` → `Board Type` → 选择 `EchoEar`
|
||||
|
||||
### 分区表配置
|
||||
- `Partition Table` → `Partition Table` → 选择 `Custom partition table CSV`
|
||||
- `Partition Table` → `Custom partition CSV file` → 输入 `partitions/v1/16m_echoear.csv`
|
||||
|
||||
### UI风格选择
|
||||
|
||||
EchoEar 支持两种不同的UI显示风格,通过修改代码中的宏定义来选择:
|
||||
|
||||
#### 自定义表情显示系统 (推荐)
|
||||
```c
|
||||
#define USE_LVGL_DEFAULT 0
|
||||
```
|
||||
- **特点**: 使用自定义的 `EmoteDisplay` 表情显示系统
|
||||
- **功能**: 支持丰富的表情动画、眼睛动画、状态图标显示
|
||||
- **适用**: 智能助手场景,提供更生动的人机交互体验
|
||||
- **类**: `anim::EmoteDisplay` + `anim::EmoteEngine`
|
||||
|
||||
#### LVGL默认显示系统
|
||||
```c
|
||||
#define USE_LVGL_DEFAULT 1
|
||||
```
|
||||
- **特点**: 使用标准LVGL图形库的显示系统
|
||||
- **功能**: 传统的文本和图标显示界面
|
||||
- **适用**: 需要标准GUI控件的应用场景
|
||||
- **类**: `SpiLcdDisplay`
|
||||
|
||||
#### 如何修改
|
||||
1. 打开 `main/boards/echoear/EchoEar.cc` 文件
|
||||
2. 找到第29行的宏定义:`#define USE_LVGL_DEFAULT 0`
|
||||
3. 修改为想要的值(0或1)
|
||||
4. 重新编译项目
|
||||
|
||||
> **说明**: EchoEar 使用16MB Flash,需要使用专门的分区表配置来合理分配存储空间给应用程序、OTA更新、资源文件等。
|
||||
|
||||
按 `S` 保存,按 `Q` 退出。
|
||||
|
||||
**编译**
|
||||
|
||||
Reference in New Issue
Block a user