mirror of
https://github.com/esphome/esphome.git
synced 2024-09-30 04:28:42 +02:00
a02d2e2e11
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. |
||
---|---|---|
.. | ||
__init__.py | ||
i2c_bus_arduino.cpp | ||
i2c_bus_arduino.h | ||
i2c_bus_esp_idf.cpp | ||
i2c_bus_esp_idf.h | ||
i2c_bus.h | ||
i2c.cpp | ||
i2c.h |