Co-authored-by: Keith Burzinski <kbx81x@gmail.com> Co-authored-by: J. Nick Koston <nick@koston.org>
20 lines
375 B
C++
20 lines
375 B
C++
#pragma once
|
|
|
|
#include "esphome/components/number/number.h"
|
|
#include "../ld2412.h"
|
|
|
|
namespace esphome {
|
|
namespace ld2412 {
|
|
|
|
class GateThresholdNumber : public number::Number, public Parented<LD2412Component> {
|
|
public:
|
|
GateThresholdNumber(uint8_t gate);
|
|
|
|
protected:
|
|
uint8_t gate_;
|
|
void control(float value) override;
|
|
};
|
|
|
|
} // namespace ld2412
|
|
} // namespace esphome
|