Add preview image to lcd display

This commit is contained in:
Terrence
2025-05-25 07:02:44 +08:00
parent 0204b8800b
commit ecfebc4a29
4 changed files with 160 additions and 125 deletions

View File

@@ -15,10 +15,6 @@
#define TAG "Display"
Display::Display() {
// Load theme from settings
Settings settings("display", false);
current_theme_name_ = settings.GetString("theme", "light");
// Notification timer
esp_timer_create_args_t notification_timer_args = {
.callback = [](void *arg) {
@@ -235,6 +231,10 @@ void Display::SetIcon(const char* icon) {
lv_label_set_text(emotion_label_, icon);
}
void Display::SetPreviewImage(const lv_img_dsc_t* image) {
// Do nothing
}
void Display::SetChatMessage(const char* role, const char* content) {
DisplayLockGuard lock(this);
if (chat_message_label_ == nullptr) {