15 void setup()
override;
44 void setup()
override;
48 std::string dump_summary()
const override;
PCA6416AComponent()=default
bool digital_read(uint8_t pin)
Helper function to read the value of a pin.
void set_flags(gpio::Flags flags)
void set_inverted(bool inverted)
bool write_register_(uint8_t reg, uint8_t value)
I2CRegister reg(uint8_t a_register)
calls the I2CRegister constructor
esphome::i2c::ErrorCode last_error_
Storage for last I2C error seen.
void digital_write(uint8_t pin, bool value)
Helper function to write the value of a pin.
bool has_pullup_
Only the PCAL6416A has pull-up resistors.
void update_register_(uint8_t pin, bool pin_value, uint8_t reg_addr)
void set_pin(uint8_t pin)
void dump_config() override
void pin_mode(uint8_t pin, gpio::Flags flags)
Helper function to set the pin mode of a pin.
void set_parent(PCA6416AComponent *parent)
bool read_register_(uint8_t reg, uint8_t *value)
void setup() override
Check i2c availability and setup masks.
Implementation of SPI Controller mode.
PCA6416AComponent * parent_
Helper class to expose a PCA6416A pin as an internal input GPIO pin.
ErrorCode
Error codes returned by I2CBus and I2CDevice methods.
float get_setup_priority() const override
uint8_t output_0_
The mask to write as output state - 1 means HIGH, 0 means LOW.
This Class provides the methods to read/write bytes from/to an i2c device.