2025-06-05 23:51:49 +08:00
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
|
|
#include "display/lcd_display.h"
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2025-10-31 22:07:42 +08:00
|
|
|
|
* @brief Electron机器人GIF表情显示类
|
|
|
|
|
|
* 继承SpiLcdDisplay,通过EmojiCollection添加GIF表情支持
|
2025-06-05 23:51:49 +08:00
|
|
|
|
*/
|
|
|
|
|
|
class ElectronEmojiDisplay : public SpiLcdDisplay {
|
2025-10-31 22:07:42 +08:00
|
|
|
|
public:
|
2025-06-05 23:51:49 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* @brief 构造函数,参数与SpiLcdDisplay相同
|
|
|
|
|
|
*/
|
2025-10-31 22:07:42 +08:00
|
|
|
|
ElectronEmojiDisplay(esp_lcd_panel_io_handle_t panel_io, esp_lcd_panel_handle_t panel, int width, int height, int offset_x, int offset_y, bool mirror_x, bool mirror_y, bool swap_xy);
|
2025-06-05 23:51:49 +08:00
|
|
|
|
|
|
|
|
|
|
virtual ~ElectronEmojiDisplay() = default;
|
2025-10-31 22:07:42 +08:00
|
|
|
|
virtual void SetStatus(const char* status) override;
|
2025-06-05 23:51:49 +08:00
|
|
|
|
|
2025-10-31 22:07:42 +08:00
|
|
|
|
private:
|
|
|
|
|
|
void InitializeElectronEmojis();
|
|
|
|
|
|
void SetupChatLabel();
|
2025-06-05 23:51:49 +08:00
|
|
|
|
};
|