46 bool begin(TwoWire &wire, uint8_t addr,
int sda = -1,
int scl = -1)
49 comm = std::make_unique<SensorCommI2C>(wire, addr, sda, scl);
53#elif defined(ESP_PLATFORM)
54#if defined(SENSORLIB_USE_I2C_LEGACY)
63 bool begin(i2c_port_t port_num, uint8_t addr,
int sda = -1,
int scl = -1)
66 comm = std::make_unique<SensorCommI2C>(port_num, addr, sda, scl);
77 bool begin(i2c_master_bus_handle_t handle, uint8_t addr)
80 comm = std::make_unique<SensorCommI2C>(handle, addr);
97 comm = std::make_unique<SensorCommCustom>(callback, addr);