22 void setup()
override;
53 void setup()
override;
A class to cache the read state of a GPIO expander.
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
void digital_write_hw(uint8_t pin, bool value) override
PCF8574Component()=default
void loop() override
Invalidate cache at start of each loop.
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)
float get_loop_priority() const override
bool digital_read_cache(uint8_t pin) override
bool pcf8575_
TRUE->16-channel PCF8575, FALSE->8-channel PCF8574.
bool digital_read_hw(uint8_t pin) override
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.