forked from xiaozhi/xiaozhi-esp32
* Adapt boards to v2 partition tables * fix esp log error * fix display style * reset emotion after download assets * fix compiling * update assets default url * Add user only tools * Add image cache * smaller cache and buffer, more heap * use MAIN_EVENT_CLOCK_TICK to avoid audio glitches * bump to 2.0.0 * fix compiling errors --------- Co-authored-by: Xiaoxia <terrence.huang@tenclass.com>
40 lines
802 B
C++
40 lines
802 B
C++
#include "esplog_display.h"
|
|
|
|
#include "esp_log.h"
|
|
|
|
#define TAG "EspLogDisplay"
|
|
|
|
|
|
EspLogDisplay::EspLogDisplay()
|
|
{}
|
|
|
|
EspLogDisplay::~EspLogDisplay()
|
|
{}
|
|
|
|
void EspLogDisplay::SetStatus(const char* status)
|
|
{
|
|
ESP_LOGW(TAG, "SetStatus: %s", status);
|
|
}
|
|
|
|
void EspLogDisplay::ShowNotification(const char* notification, int duration_ms)
|
|
{
|
|
ESP_LOGW(TAG, "ShowNotification: %s", notification);
|
|
}
|
|
void EspLogDisplay::ShowNotification(const std::string ¬ification, int duration_ms)
|
|
{
|
|
ShowNotification(notification.c_str(), duration_ms);
|
|
}
|
|
|
|
|
|
void EspLogDisplay::SetEmotion(const char* emotion)
|
|
{
|
|
ESP_LOGW(TAG, "SetEmotion: %s", emotion);
|
|
}
|
|
|
|
void EspLogDisplay::SetChatMessage(const char* role, const char* content)
|
|
{
|
|
ESP_LOGW(TAG, "Role:%s", role);
|
|
ESP_LOGW(TAG, " %s", content);
|
|
}
|
|
|