Skip to content

Arduino Wire(i2c) library cannot be used together with this library #206

@cheops

Description

@cheops

I am using pioarduino release 3.2.0 (#147)
when using Wire from arduino together with this dirver I get an error

E (972) i2c: CONFLICT! driver_ng is not allowed to be used with this old driver

Wire I2C bus configuration

#include <Wire.h>
Wire.begin(SDA_PIN, SCL_PIN);

disabling the touch and portexpander is not enough to use this library (only for display) and also use Wire library

#define ESP_PANEL_DRIVERS_BUS_USE_ALL                   (0)
    #define ESP_PANEL_DRIVERS_BUS_USE_I2C               (0)
#define ESP_PANEL_DRIVERS_BUS_COMPILE_UNUSED_DRIVERS    (0)

#define ESP_PANEL_DRIVERS_TOUCH_USE_ALL                 (0)
    #define ESP_PANEL_DRIVERS_TOUCH_USE_AXS15231B       (0)
    #define ESP_PANEL_DRIVERS_TOUCH_USE_CHSC6540        (0)
    #define ESP_PANEL_DRIVERS_TOUCH_USE_CST816S         (0)
    #define ESP_PANEL_DRIVERS_TOUCH_USE_FT5x06          (0)
    #define ESP_PANEL_DRIVERS_TOUCH_USE_GT911           (0)
    #define ESP_PANEL_DRIVERS_TOUCH_USE_GT1151          (0)
    #define ESP_PANEL_DRIVERS_TOUCH_USE_SPD2010         (0)
    #define ESP_PANEL_DRIVERS_TOUCH_USE_ST1633          (0)
    #define ESP_PANEL_DRIVERS_TOUCH_USE_ST7123          (0)
    #define ESP_PANEL_DRIVERS_TOUCH_USE_STMPE610        (0)
    #define ESP_PANEL_DRIVERS_TOUCH_USE_TT21100         (0)
    #define ESP_PANEL_DRIVERS_TOUCH_USE_XPT2046         (0)
#define ESP_PANEL_DRIVERS_TOUCH_COMPILE_UNUSED_DRIVERS          (0)

#define ESP_PANEL_DRIVERS_EXPANDER_USE_ALL                      (0)
    #define ESP_PANEL_DRIVERS_EXPANDER_USE_CH422G               (0)
    #define ESP_PANEL_DRIVERS_EXPANDER_USE_HT8574               (0)
    #define ESP_PANEL_DRIVERS_EXPANDER_USE_TCA95XX_8BIT         (0)
    #define ESP_PANEL_DRIVERS_EXPANDER_USE_TCA95XX_16BIT        (0)
#define ESP_PANEL_BOARD_LCD_BUS_TYPE        (ESP_PANEL_BUS_TYPE_MIPI_DSI)
#define ESP_PANEL_BOARD_LCD_BUS_SKIP_INIT_HOST      (0)     // 0/1. Typically set to 0

#define ESP_PANEL_BOARD_USE_TOUCH               (0)
#define ESP_PANEL_BOARD_TOUCH_BUS_SKIP_INIT_HOST        (1)     // 0/1. Typically set to 0

#define ESP_PANEL_BOARD_USE_EXPANDER            (0)
#define ESP_PANEL_BOARD_EXPANDER_SKIP_INIT_HOST     (1)     // 0/1

wire.cpp https://github.com/espressif/arduino-esp32/blob/master/libraries/Wire/src/Wire.cpp#L36
now uses the driver_ng

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions