17 void setup()
override;
46 void setup()
override;
50 std::string dump_summary()
const override;
uint16_t mode_mask_
Mask for the pin mode - 1 means output, 0 means input.
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.
uint16_t input_mask_
The state read in read_gpio_ - 1 means HIGH, 0 means LOW.
void set_inverted(bool inverted)
bool digital_read(uint8_t pin)
Helper function to read the value of a pin.
PCF8574Component()=default
Helper class to expose a PCF8574 pin as an internal input GPIO pin.
PCF8574Component * parent_
uint16_t output_mask_
The mask to write as output state - 1 means HIGH, 0 means LOW.
float get_setup_priority() const override
bool pcf8575_
TRUE->16-channel PCF8575, FALSE->8-channel PCF8574.
void setup() override
Check i2c availability and setup masks.
Implementation of SPI Controller mode.
void set_parent(PCF8574Component *parent)
void set_pcf8575(bool pcf8575)
This Class provides the methods to read/write bytes from/to an i2c device.
void digital_write(uint8_t pin, bool value)
Helper function to write the value of a pin.
void set_flags(gpio::Flags flags)