ESPHome  2024.9.2
copy_number.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 namespace esphome {
7 namespace copy {
8 
9 class CopyNumber : public number::Number, public Component {
10  public:
11  void set_source(number::Number *source) { source_ = source; }
12  void setup() override;
13  void dump_config() override;
14  float get_setup_priority() const override { return setup_priority::DATA; }
15 
16  protected:
17  void control(float value) override;
18 
20 };
21 
22 } // namespace copy
23 } // namespace esphome
const float DATA
For components that import data from directly connected sensors like DHT.
Definition: component.cpp:19
void setup() override
Definition: copy_number.cpp:9
Base-class for all numbers.
Definition: number.h:39
void control(float value) override
Definition: copy_number.cpp:22
void set_source(number::Number *source)
Definition: copy_number.h:11
number::Number * source_
Definition: copy_number.h:19
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
float get_setup_priority() const override
Definition: copy_number.h:14
void dump_config() override
Definition: copy_number.cpp:20