7 #include <driver/i2c.h> 20 void setup()
override;
the WriteBuffer structure stores a pointer to a write buffer and its length
float get_setup_priority() const override
void set_sda_pin(uint8_t sda_pin)
void dump_config() override
void set_sda_pullup_enabled(bool sda_pullup_enabled)
the ReadBuffer structure stores a pointer to a read buffer and its length
ErrorCode writev(uint8_t address, WriteBuffer *buffers, size_t cnt, bool stop) override
void set_frequency(uint32_t frequency)
ErrorCode readv(uint8_t address, ReadBuffer *buffers, size_t cnt) override
const float BUS
For communication buses like i2c/spi.
void set_scl_pullup_enabled(bool scl_pullup_enabled)
This Class provides the methods to read and write bytes from an I2CBus.
bool scan_
Should we scan ? Can be set in the yaml.
void set_timeout(uint32_t timeout)
Implementation of SPI Controller mode.
void set_scl_pin(uint8_t scl_pin)
ErrorCode
Error codes returned by I2CBus and I2CDevice methods.