Fix SpiLcdDisplay

This commit is contained in:
Terrence
2025-02-24 15:46:29 +08:00
parent a23a88cc5d
commit 6b855eae53
7 changed files with 14 additions and 14 deletions

View File

@@ -34,7 +34,7 @@ static const sh8601_lcd_init_cmd_t vendor_specific_init[] = {
};
// 在waveshare_amoled_1_8类之前添加新的显示类
class CustomLcdDisplay : public LcdDisplay {
class CustomLcdDisplay : public SpiLcdDisplay {
public:
CustomLcdDisplay(esp_lcd_panel_io_handle_t io_handle,
esp_lcd_panel_handle_t panel_handle,
@@ -47,7 +47,7 @@ public:
bool mirror_x,
bool mirror_y,
bool swap_xy)
: LcdDisplay(io_handle, panel_handle, backlight_pin, backlight_output_invert,
: SpiLcdDisplay(io_handle, panel_handle, backlight_pin, backlight_output_invert,
width, height, offset_x, offset_y, mirror_x, mirror_y, swap_xy,
{
.text_font = &font_puhui_30_4,