esphome/esphome/components/i2c
Stefan Agner a02d2e2e11
Explicitly use overloaded begin() for I2C master initialization (#2978)
Arduino 2.0.1 and newer support slave and master mode. The two modes
have a begin() method with different signature:

```
// Slave Begin
bool TwoWire::begin(uint8_t addr, int sdaPin, int sclPin, uint32_t frequency)

// Master Begin
bool TwoWire::begin(int sdaPin, int sclPin, uint32_t frequency)
```

Use type casting to make sure that overloaded method for master mode
is used.
2022-01-03 16:37:21 +01:00
..
__init__.py ESP-IDF support and generic target platforms (#2303) 2021-09-20 11:47:51 +02:00
i2c_bus_arduino.cpp Explicitly use overloaded begin() for I2C master initialization (#2978) 2022-01-03 16:37:21 +01:00
i2c_bus_arduino.h Move i2c scan to setup (#2869) 2021-12-13 09:12:50 +13:00
i2c_bus_esp_idf.cpp Move i2c scan to setup (#2869) 2021-12-13 09:12:50 +13:00
i2c_bus_esp_idf.h Move i2c scan to setup (#2869) 2021-12-13 09:12:50 +13:00
i2c_bus.h Move i2c scan to setup (#2869) 2021-12-13 09:12:50 +13:00
i2c.cpp I2c fix (#2460) 2021-10-07 21:18:00 +02:00
i2c.h Introduce byteswap helpers (#2661) 2021-11-10 19:40:18 +01:00