forked from xiaozhi/xiaozhi-esp32
* otto v1.4.0 MCP 1.使用MCP协议控制机器人 2.gif继承lcdDisplay,避免修改lcdDisplay * otto v1.4.1 gif as components gif as components * electronBot v1.1.0 mcp 1.增加electronBot支持 2.mcp协议 3.gif 作为组件 4.display子类 * 规范代码 1.规范代码 2.修复切换主题死机bug * fix(ota): 修复 ottoRobot和electronBot OTA 升级崩溃问题 bug * 1.增加robot舵机初始位置校准 2.fix(mcp_sever) 超出范围异常捕获类型 bug * refactor: Update Electron and Otto emoji display implementations - Removed GIF selection from Kconfig for Electron and Otto boards. - Updated Electron and Otto bot versions to 2.0.4 in their respective config files. - Refactored emoji display classes to utilize EmojiCollection for managing emojis. - Enhanced chat label setup and status display functionality in both classes. - Cleaned up unused code and improved initialization logging for emoji displays. * Rename OTTO_ICON_FONT.c to otto_icon_font.c * Rename OTTO_ICON_FONT.c to otto_icon_font.c
22 lines
678 B
C++
22 lines
678 B
C++
#pragma once
|
||
|
||
#include "display/lcd_display.h"
|
||
|
||
/**
|
||
* @brief Electron机器人GIF表情显示类
|
||
* 继承SpiLcdDisplay,通过EmojiCollection添加GIF表情支持
|
||
*/
|
||
class ElectronEmojiDisplay : public SpiLcdDisplay {
|
||
public:
|
||
/**
|
||
* @brief 构造函数,参数与SpiLcdDisplay相同
|
||
*/
|
||
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);
|
||
|
||
virtual ~ElectronEmojiDisplay() = default;
|
||
virtual void SetStatus(const char* status) override;
|
||
|
||
private:
|
||
void InitializeElectronEmojis();
|
||
void SetupChatLabel();
|
||
}; |