forked from xiaozhi/xiaozhi-esp32
Add preview image to lcd display
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user