diff --git a/src/internal/methods/NeoEsp32LcdXMethod.h b/src/internal/methods/NeoEsp32LcdXMethod.h index e7a82541..55de853e 100644 --- a/src/internal/methods/NeoEsp32LcdXMethod.h +++ b/src/internal/methods/NeoEsp32LcdXMethod.h @@ -552,7 +552,11 @@ class NeoEsp32LcdMuxBus uint8_t muxIdx = LCD_DATA_OUT0_IDX + _muxId; esp_rom_gpio_connect_out_signal(pin, muxIdx, invert, false); - gpio_hal_iomux_func_sel(GPIO_PIN_MUX_REG[pin], PIN_FUNC_GPIO); + #if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 5, 0) + gpio_iomux_out(pin, PIN_FUNC_GPIO, false); + #else + gpio_hal_iomux_func_sel(GPIO_PIN_MUX_REG[pin], PIN_FUNC_GPIO); + #endif gpio_set_drive_capability((gpio_num_t)pin, (gpio_drive_cap_t)3); return true; }