You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
977 B
38 lines
977 B
#ifndef OLED_DISPLAY_H
|
|
#define OLED_DISPLAY_H
|
|
|
|
#include "display.h"
|
|
|
|
#include <esp_lcd_panel_io.h>
|
|
#include <esp_lcd_panel_ops.h>
|
|
|
|
class OledDisplay : public Display {
|
|
private:
|
|
esp_lcd_panel_io_handle_t panel_io_ = nullptr;
|
|
esp_lcd_panel_handle_t panel_ = nullptr;
|
|
|
|
lv_obj_t* status_bar_ = nullptr;
|
|
lv_obj_t* content_ = nullptr;
|
|
lv_obj_t* content_left_ = nullptr;
|
|
lv_obj_t* content_right_ = nullptr;
|
|
lv_obj_t* container_ = nullptr;
|
|
lv_obj_t* side_bar_ = nullptr;
|
|
|
|
DisplayFonts fonts_;
|
|
|
|
virtual bool Lock(int timeout_ms = 0) override;
|
|
virtual void Unlock() override;
|
|
|
|
void SetupUI_128x64();
|
|
void SetupUI_128x32();
|
|
|
|
public:
|
|
OledDisplay(esp_lcd_panel_io_handle_t panel_io, esp_lcd_panel_handle_t panel, int width, int height, bool mirror_x, bool mirror_y,
|
|
DisplayFonts fonts);
|
|
~OledDisplay();
|
|
|
|
virtual void SetChatMessage(const char* role, const char* content) override;
|
|
};
|
|
|
|
#endif // OLED_DISPLAY_H
|