4#if defined(USE_NUMBER) && defined(USE_LD2410S_PARAMETERS)
21 const uint8_t
raw = lroundf(value / this->
scale_);
22 if (this->
parent_->set_parameter(this->parameter_,
raw))
Helper class to easily give an object a parent of type T.
LD2410SComponent * parent_
Edits one common parameter; scale converts the module's units to the number's.
void control(float value) override
void publish_raw(uint8_t raw)
const Parameter parameter_
LD2410SNumber(Parameter parameter, float scale)
Base-class for all numbers.
void publish_state(float state)
Parameter
The module's common parameters, in the order the parameter read answers them.