18 void setup()
override;
47 void setup()
override;
51 std::string dump_summary()
const override;
53 void set_pin(uint8_t pin) { this->pin_ = pin; }
uint16_t input_mask_
The state read in digital_read_hw - 1 means HIGH, 0 means LOW.
bool digital_read(uint8_t pin)
bool digital_read_hw(uint8_t pin) override
uint16_t mode_mask_
Mask for the pin mode - 1 means output, 0 means input.
void set_pin(uint8_t pin)
void digital_write(uint8_t pin, bool value)
float get_setup_priority() const override
void pin_mode(uint8_t pin, gpio::Flags flags)
bool digital_read_cache(uint8_t pin) override
void digital_write_hw(uint8_t pin, bool value) override
Helper class to expose a TCA9555 pin as an internal input GPIO pin.
void set_flags(gpio::Flags flags)
void dump_config() override
uint16_t output_mask_
The mask to write as output state - 1 means HIGH, 0 means LOW.
bool read_gpio_outputs_()
A class to cache the read state of a GPIO expander.
void set_inverted(bool inverted)
Implementation of SPI Controller mode.
void setup() override
Check i2c availability and setup masks.
TCA9555Component()=default
This Class provides the methods to read/write bytes from/to an i2c device.
Helper class to easily give an object a parent of type T.