Files
V2_micropython/c++/otto-robot_otto_emoji_display.h
jeremygan2021 252a430466 f
2026-03-02 21:14:05 +08:00

23 lines
763 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.
#pragma once
#include "display/lcd_display.h"
/**
* @brief Otto机器人GIF表情显示类
* 继承SpiLcdDisplay通过EmojiCollection添加GIF表情支持
*/
class OttoEmojiDisplay : public SpiLcdDisplay {
public:
/**
* @brief 构造函数参数与SpiLcdDisplay相同
*/
OttoEmojiDisplay(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 ~OttoEmojiDisplay() = default;
virtual void SetStatus(const char* status) override;
virtual void SetPreviewImage(std::unique_ptr<LvglImage> image) override;
private:
void InitializeOttoEmojis();
void SetupPreviewImage();
};