72 void setup()
override;
85 public spi::SPIDevice<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_LOW,
86 spi::CLOCK_PHASE_LEADING, spi::DATA_RATE_4MHZ> {
88 void setup()
override;
Helper class to easily give an object a parent of type T.
void digital_write_(uint16_t pin, bool value)
SN74HC595Component()=default
void set_sr_count(uint8_t count)
float get_setup_priority() const override
virtual void write_gpio()
void set_oe_pin(GPIOPin *pin)
void dump_config() override
void set_latch_pin(GPIOPin *pin)
std::vector< uint8_t > output_bytes_
void set_data_pin(GPIOPin *pin)
void write_gpio() override
void set_clock_pin(GPIOPin *pin)
Helper class to expose a SC74HC595 pin as an internal output GPIO pin.
std::string dump_summary() const override
void digital_write(bool value) override
gpio::Flags get_flags() const override
Always returns gpio::Flags::FLAG_OUTPUT.
void pin_mode(gpio::Flags flags) override
bool digital_read() override
void set_pin(uint16_t pin)
void set_inverted(bool inverted)
void write_gpio() override
The SPIDevice is what components using the SPI will create.
Providing packet encoding functions for exchanging data with a remote host.