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>
28 lines
927 B
C++
28 lines
927 B
C++
#ifndef ESPLOG_DISPLAY_H_
|
|
#define ESPLOG_DISPLAY_H_
|
|
|
|
#include "display.h"
|
|
|
|
#include <string>
|
|
|
|
class EspLogDisplay : public Display {
|
|
public:
|
|
EspLogDisplay();
|
|
~EspLogDisplay();
|
|
|
|
virtual void SetStatus(const char* status);
|
|
virtual void ShowNotification(const char* notification, int duration_ms = 3000);
|
|
virtual void ShowNotification(const std::string ¬ification, int duration_ms = 3000);
|
|
virtual void SetEmotion(const char* emotion) override;
|
|
virtual void SetChatMessage(const char* role, const char* content) override;
|
|
virtual inline void SetPreviewImage(const lv_img_dsc_t* image) override {}
|
|
virtual inline void SetTheme(const std::string& theme_name) override {}
|
|
virtual inline void UpdateStatusBar(bool update_all = false) override {}
|
|
|
|
protected:
|
|
virtual inline bool Lock(int timeout_ms = 0) override { return true; }
|
|
virtual inline void Unlock() override {}
|
|
};
|
|
|
|
#endif
|