47 void setup()
override;
48 void dump_config()
override;
63 bool store_in_eeprom_ =
false;
71 : parent_(parent), channel_(channel), vref_(vref), gain_(gain), pwrdown_(pwrdown) {
81 void write_state(
float state)
override;
void select_power_down_(MCP4728ChannelIdx channel, MCP4728PwrDown pd)
Base class for all output components that can output a variable level, like PWM.
MCP4728 float output component.
MCP4728Component(bool store_in_eeprom)
void select_vref_(MCP4728ChannelIdx channel, MCP4728Vref vref)
MCP4728Channel(MCP4728Component *parent, MCP4728ChannelIdx channel, MCP4728Vref vref, MCP4728Gain gain, MCP4728PwrDown pwrdown)
MCP4728Component * parent_
void select_gain_(MCP4728ChannelIdx channel, MCP4728Gain gain)
const float HARDWARE
For components that deal with hardware and are very important like GPIO switch.
MCP4728ChannelIdx channel_
float get_setup_priority() const override