Dzbj_ESP32-S3/main/ui/screens/ui_ScreenChar.h
Rdzleo 6711a24a68 feat: 新增ScreenChar角色动画界面 + 启用GIF解码器
- 新增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>
2026-03-24 18:05:54 +08:00

26 lines
613 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 动漫角色界面 - 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