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