Rdzleo e2ec9f36aa 1、启用LVGL GIF解码器(CONFIG_LV_USE_GIF=y),支持吧唧模式GIF图片BLE传输和播放;
2、LVGL内存管理切换为系统malloc(CONFIG_LV_MEM_CUSTOM=y),使gifdec大块分配走PSRAM避免内部堆不足;
3、pages.h stub头文件补充pages_cleanup_gif()声明,修复ui_ScreenImg.c编译隐式声明错误;

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 17:36:18 +08:00

27 lines
607 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.

#ifndef _PAGES_STUB_H_
#define _PAGES_STUB_H_
// Stub 头文件dzbj ui_ScreenImg.c 引用Phase 1 仅提供声明
// 实际实现将在后续阶段添加
#include "esp_err.h"
#include <stdint.h>
#include <stdbool.h>
#include "lvgl.h"
void pwm_init(void);
void pwm_set_brightness(uint8_t percent);
uint8_t pwm_get_brightness(void);
const char* get_current_image(void);
bool delete_current_image(void);
void init_spiffs_image_list(void);
void free_spiffs_image_list(void);
bool set_image_index_by_name(const char *name);
#if LV_USE_GIF
void pages_cleanup_gif(void);
#endif
#endif // _PAGES_STUB_H_