Files
xiaozhi-esp32/main/display/display.cc

57 lines
1.2 KiB
C++
Raw Permalink Normal View History

2024-11-18 06:17:39 +08:00
#include <esp_log.h>
#include <esp_err.h>
#include <string>
#include <cstdlib>
#include <cstring>
#include <font_awesome.h>
2024-11-18 06:17:39 +08:00
#include "display.h"
#include "board.h"
#include "application.h"
#include "audio_codec.h"
2025-02-14 01:15:10 +08:00
#include "settings.h"
#include "assets/lang_config.h"
2024-11-18 06:17:39 +08:00
#define TAG "Display"
Display::Display() {
}
Display::~Display() {
}
2025-02-19 23:54:59 +08:00
void Display::SetStatus(const char* status) {
ESP_LOGW(TAG, "SetStatus: %s", status);
2024-11-18 06:17:39 +08:00
}
void Display::ShowNotification(const std::string &notification, int duration_ms) {
2025-02-19 23:54:59 +08:00
ShowNotification(notification.c_str(), duration_ms);
}
void Display::ShowNotification(const char* notification, int duration_ms) {
ESP_LOGW(TAG, "ShowNotification: %s", notification);
2024-11-18 06:17:39 +08:00
}
void Display::UpdateStatusBar(bool update_all) {
2024-11-18 06:17:39 +08:00
}
2025-02-19 23:54:59 +08:00
void Display::SetEmotion(const char* emotion) {
ESP_LOGW(TAG, "SetEmotion: %s", emotion);
2024-11-18 06:17:39 +08:00
}
2025-02-19 23:54:59 +08:00
void Display::SetChatMessage(const char* role, const char* content) {
ESP_LOGW(TAG, "Role:%s", role);
ESP_LOGW(TAG, " %s", content);
2024-11-18 06:17:39 +08:00
}
2025-03-20 03:00:07 +08:00
void Display::SetTheme(Theme* theme) {
current_theme_ = theme;
Settings settings("display", true);
settings.SetString("theme", theme->name());
2025-03-20 03:00:07 +08:00
}
2025-07-29 15:25:40 +08:00
void Display::SetPowerSaveMode(bool on) {
ESP_LOGW(TAG, "SetPowerSaveMode: %d", on);
}