forked from xiaozhi/xiaozhi-esp32
fixbug: add virtual
This commit is contained in:
@@ -28,7 +28,7 @@ public:
|
||||
width, height, offset_x, offset_y, mirror_x, mirror_y, swap_xy,
|
||||
&font_puhui_16_4, &font_awesome_16_4) {}
|
||||
|
||||
void SetupUI() override {
|
||||
virtual void SetupUI() override {
|
||||
DisplayLockGuard lock(this);
|
||||
|
||||
// 调用父类的 SetupUI 来设置基本布局
|
||||
|
||||
@@ -29,7 +29,7 @@ public:
|
||||
width, height, offset_x, offset_y, mirror_x, mirror_y, swap_xy,
|
||||
&font_puhui_16_4, &font_awesome_16_4) {}
|
||||
|
||||
void SetupUI() override {
|
||||
virtual void SetupUI() override {
|
||||
DisplayLockGuard lock(this);
|
||||
|
||||
// 调用父类的 SetupUI 来设置基本布局
|
||||
@@ -139,13 +139,6 @@ private:
|
||||
esp_lcd_panel_disp_on_off(panel, true);
|
||||
display_ = new NV3023Display(panel_io, panel, DISPLAY_BACKLIGHT_PIN, DISPLAY_BACKLIGHT_OUTPUT_INVERT,
|
||||
DISPLAY_WIDTH, DISPLAY_HEIGHT, DISPLAY_OFFSET_X, DISPLAY_OFFSET_Y, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y, DISPLAY_SWAP_XY);
|
||||
if (display_) {
|
||||
display_->SetupUI();
|
||||
} else {
|
||||
ESP_LOGE(TAG, "Display is not initialized!");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
// 物联网初始化,添加对 AI 可见设备
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#include "wifi_board.h"
|
||||
#include "audio_codecs/es8311_audio_codec.h"
|
||||
// #include "display/ssd1306_display.h"
|
||||
#include "display/lcd_display.h"
|
||||
#include "display/no_display.h"
|
||||
#include "application.h"
|
||||
|
||||
Reference in New Issue
Block a user