diff --git a/components/pcf8574/pcf8574.c b/components/pcf8574/pcf8574.c index 4f108f0..aad9f1a 100644 --- a/components/pcf8574/pcf8574.c +++ b/components/pcf8574/pcf8574.c @@ -50,7 +50,9 @@ esp_err_t pcf8574_init_desc(i2c_dev_t *dev, i2c_port_t port, uint8_t addr, gpio_ dev->port = port; dev->addr = addr; dev->cfg.sda_io_num = sda_gpio; + dev->cfg.sda_pullup_en = GPIO_PULLUP_ENABLE; dev->cfg.scl_io_num = scl_gpio; + dev->cfg.scl_pullup_en = GPIO_PULLUP_ENABLE; #if HELPER_TARGET_IS_ESP32 dev->cfg.master.clk_speed = I2C_FREQ_HZ; #endif