13 const char *
id_ =
nullptr;
20 void set_id(
const char *
id) { this->id_ =
id; }
26 void set_min_value(
float min_value)
override { this->min_value_ = min_value; }
27 void set_max_value(
float max_value)
override { this->max_value_ = max_value; }
Base class for all output components that can output a variable level, like PWM.
T id(T value)
Helper function to make id(var) known from lambdas work in custom components.
void write_state(float state) override
void set_id(const char *id)
void set_min_value(float min_value) override
Implementation of SPI Controller mode.
void set_max_value(float max_value) override