Helper class to easily give an object a parent of type T.
void set_level(float state)
Set level of wiper.
void disable_terminal(char terminal)
Disable given terminal.
float update_state()
Update current output state using device wiper state.
void turn_on() override
Enables current output.
void set_state(bool state) override
Enables/Disables current output using bool parameter.
Mcp4461Component * parent_
float read_state()
Read current device wiper state without updating internal output state.
void turn_off() override
Disables current output.
void decrease_wiper()
Decrease wiper by 1 tap.
Mcp4461Wiper(Mcp4461Component *parent, Mcp4461WiperIdx wiper)
void write_state(float state) override
void increase_wiper()
Increase wiper by 1 tap.
void enable_terminal(char terminal)
Enable given terminal.
Base class for all output components that can output a variable level, like PWM.
Providing packet encoding functions for exchanging data with a remote host.