3 #include "../mcp4461.h"
void write_state(float state) override
void turn_off() override
Disables current output.
Base class for all output components that can output a variable level, like PWM.
Mcp4461Wiper(Mcp4461Component *parent, Mcp4461WiperIdx wiper)
void set_level(float state)
Set level of wiper.
void turn_on() override
Enables current output.
void enable_terminal(char terminal)
Enable given terminal.
float read_state()
Read current device wiper state without updating internal output state.
void increase_wiper()
Increase wiper by 1 tap.
Mcp4461Component * parent_
void disable_terminal(char terminal)
Disable given terminal.
void decrease_wiper()
Decrease wiper by 1 tap.
Implementation of SPI Controller mode.
void set_state(bool state) override
Enables/Disables current output using bool parameter.
Helper class to easily give an object a parent of type T.
float update_state()
Update current output state using device wiper state.