- 新增ui_ScreenChar:LVGL基元绘制动漫角色(金黄头发/脸/眼/嘴/身体/胳膊) - 序列帧动画:BOOT按键触发眨眼+说话动画,再按停止 - ScreenImg上滑导航至ScreenChar(保留原Home路径可切换) - BOOT按键逻辑:ScreenChar界面切换动画,其他界面返回Home - 启用CONFIG_LV_USE_GIF=y支持GIF动图显示 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
26 lines
613 B
C
26 lines
613 B
C
// 动漫角色界面 - LVGL图形基元绘制 + 序列帧动画
|
||
#ifndef UI_SCREENCHAR_H
|
||
#define UI_SCREENCHAR_H
|
||
|
||
#ifdef __cplusplus
|
||
extern "C" {
|
||
#endif
|
||
|
||
#include "lvgl.h"
|
||
|
||
// SCREEN: ui_ScreenChar
|
||
extern void ui_ScreenChar_screen_init(void);
|
||
extern void ui_ScreenChar_screen_destroy(void);
|
||
extern lv_obj_t *ui_ScreenChar;
|
||
|
||
// 角色动画控制(BOOT按键触发)
|
||
void char_anim_start(void); // 开始眨眼+说话动画
|
||
void char_anim_stop(void); // 停止动画,恢复静态
|
||
bool char_anim_is_playing(void); // 查询动画是否在播放
|
||
|
||
#ifdef __cplusplus
|
||
} /*extern "C"*/
|
||
#endif
|
||
|
||
#endif
|