fix no oled display error

This commit is contained in:
Terrence
2025-03-08 19:56:56 +08:00
parent e1b84e824c
commit 5568c70cb4
14 changed files with 27 additions and 38 deletions

View File

@@ -24,7 +24,7 @@ private:
i2c_master_bus_handle_t display_i2c_bus_;
esp_lcd_panel_io_handle_t panel_io_ = nullptr;
esp_lcd_panel_handle_t panel_ = nullptr;
OledDisplay* display_ = nullptr;
Display* display_ = nullptr;
Button boot_button_;
Button touch_button_;
Button volume_up_button_;
@@ -82,6 +82,7 @@ private:
ESP_ERROR_CHECK(esp_lcd_panel_reset(panel_));
if (esp_lcd_panel_init(panel_) != ESP_OK) {
ESP_LOGE(TAG, "Failed to initialize display");
display_ = new NoDisplay();
return;
}