mirror of
https://github.com/78/xiaozhi-esp32.git
synced 2026-02-27 22:36:35 +00:00
* chore: Update component versions and enhance UI setup across multiple boards - Bumped uart-eth-modem version from ~0.3.2 to ~0.3.3 in idf_component.yml. - Added SetupUI method to various display classes to ensure proper UI initialization before usage. - Improved error handling in display classes to prevent issues when UI is not set up. - Ensured UI customization is performed in SetupUI rather than constructors for better reliability. * remove pm config code
23 lines
715 B
C++
23 lines
715 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;
|
||
virtual void SetupUI() override;
|
||
|
||
private:
|
||
void InitializeElectronEmojis();
|
||
void SetupChatLabel();
|
||
}; |