ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
light_threshold_number.h
Go to the documentation of this file.
1#pragma once
2
4#include "../ld2412.h"
5
6namespace esphome::ld2412 {
7
8class LightThresholdNumber final : public number::Number, public Parented<LD2412Component> {
9 public:
10 // User provided, not "= default": `new(p) LightThresholdNumber()` would zero-fill .bss that is already zero.
12
13 protected:
14 void control(float value) override;
15};
16
17} // namespace esphome::ld2412
Helper class to easily give an object a parent of type T.
Definition helpers.h:2073
Base-class for all numbers.
Definition number.h:29