ESPHome
2024.11.3
esphome
esphome
components
ld2410
number
gate_threshold_number.cpp
Go to the documentation of this file.
1
#include "
gate_threshold_number.h
"
2
3
namespace
esphome
{
4
namespace
ld2410 {
5
6
GateThresholdNumber::GateThresholdNumber
(uint8_t gate) : gate_(gate) {}
7
8
void
GateThresholdNumber::control
(
float
value) {
9
this->
publish_state
(value);
10
this->
parent_
->set_gate_threshold(this->
gate_
);
11
}
12
13
}
// namespace ld2410
14
}
// namespace esphome
esphome::number::Number::publish_state
void publish_state(float state)
Definition:
number.cpp:9
esphome::Parented< LD2410Component >::parent_
LD2410Component * parent_
Definition:
helpers.h:541
esphome::ld2410::GateThresholdNumber::gate_
uint8_t gate_
Definition:
gate_threshold_number.h:14
esphome::ld2410::GateThresholdNumber::control
void control(float value) override
Definition:
gate_threshold_number.cpp:8
gate_threshold_number.h
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
esphome::ld2410::GateThresholdNumber::GateThresholdNumber
GateThresholdNumber(uint8_t gate)
Definition:
gate_threshold_number.cpp:6
Generated by
1.8.13