14 void setup()
override;
40 uint32_t switch_delay_;
This class simplifies creating components that periodically check a state.
void activate_pin(uint8_t pin)
setting pin active by setting the right combination of the four multiplexer input pins
void setup() override
Set up the internal sensor array.
void set_pin_s0(GPIOPin *pin)
set the pin connected to multiplexer control pin 0
void set_pin_s3(GPIOPin *pin)
set the pin connected to multiplexer control pin 3
void dump_config() override
void set_pin_s2(GPIOPin *pin)
set the pin connected to multiplexer control pin 2
void set_pin_s1(GPIOPin *pin)
set the pin connected to multiplexer control pin 1
float get_setup_priority() const override
void set_switch_delay(uint32_t switch_delay)
set the delay needed after an input switch
void set_source(voltage_sampler::VoltageSampler *source)
void set_pin(uint8_t pin)
CD74HC4067Sensor(CD74HC4067Component *parent)
CD74HC4067Component * parent_
voltage_sampler::VoltageSampler * source_
The sampling source to read values from.
float get_setup_priority() const override
HARDWARE_LATE setup priority.
void dump_config() override
Base-class for all sensors.
Abstract interface for components to request voltage (usually ADC readings)
Providing packet encoding functions for exchanging data with a remote host.