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

@@ -25,7 +25,7 @@ LV_FONT_DECLARE(font_awesome_16_4);
// 在waveshare_lcd_1_46类之前添加新的显示类
class CustomLcdDisplay : public LcdDisplay {
class CustomLcdDisplay : public SpiLcdDisplay {
public:
static void rounder_event_cb(lv_event_t * e)
{
@@ -48,7 +48,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_16_4,