17 void setup()
override;
46 void setup()
override;
This Class provides the methods to read/write bytes from/to an i2c device.
uint16_t input_mask_
The state read in read_gpio_ - 1 means HIGH, 0 means LOW.
void setup() override
Check i2c availability and setup masks.
uint16_t mode_mask_
Mask for the pin mode - 1 means output, 0 means input.
uint16_t output_mask_
The mask to write as output state - 1 means HIGH, 0 means LOW.
float get_setup_priority() const override
PCF8574Component()=default
void pin_mode(uint8_t pin, gpio::Flags flags)
Helper function to set the pin mode of a pin.
void dump_config() override
void set_pcf8575(bool pcf8575)
bool digital_read(uint8_t pin)
Helper function to read the value of a pin.
void digital_write(uint8_t pin, bool value)
Helper function to write the value of a pin.
bool pcf8575_
TRUE->16-channel PCF8575, FALSE->8-channel PCF8574.
Helper class to expose a PCF8574 pin as an internal input GPIO pin.
void digital_write(bool value) override
void set_inverted(bool inverted)
void set_pin(uint8_t pin)
bool digital_read() override
void set_flags(gpio::Flags flags)
void pin_mode(gpio::Flags flags) override
std::string dump_summary() const override
gpio::Flags get_flags() const override
PCF8574Component * parent_
void set_parent(PCF8574Component *parent)
Providing packet encoding functions for exchanging data with a remote host.