21 void setup()
override = 0;
56 void digital_write(
bool value)
override;
57 std::string dump_summary()
const override;
59 void set_pin(uint16_t pin) { pin_ = pin; }
69 void setup()
override;
82 public spi::SPIDevice<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_LOW,
83 spi::CLOCK_PHASE_LEADING, spi::DATA_RATE_4MHZ> {
85 void setup()
override;
virtual void write_gpio()
Helper class to expose a SC74HC595 pin as an internal output GPIO pin.
void pin_mode(gpio::Flags flags) override
std::vector< uint8_t > output_bytes_
void set_data_pin(GPIOPin *pin)
float get_setup_priority() const override
The SPIDevice is what components using the SPI will create.
void set_latch_pin(GPIOPin *pin)
void dump_config() override
void set_clock_pin(GPIOPin *pin)
SN74HC595Component()=default
void set_inverted(bool inverted)
void set_pin(uint16_t pin)
Implementation of SPI Controller mode.
void set_sr_count(uint8_t count)
void set_oe_pin(GPIOPin *pin)
void digital_write_(uint16_t pin, bool value)
Helper class to easily give an object a parent of type T.
bool digital_read() override