ESPHome
2024.11.1
esphome
esphome
components
copy
text
copy_text.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/component.h
"
4
#include "
esphome/components/text/text.h
"
5
6
namespace
esphome
{
7
namespace
copy {
8
9
class
CopyText
:
public
text::Text
,
public
Component
{
10
public
:
11
void
set_source
(
text::Text
*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
(
const
std::string &value)
override
;
18
19
text::Text
*
source_
;
20
};
21
22
}
// namespace copy
23
}
// namespace esphome
esphome::setup_priority::DATA
const float DATA
For components that import data from directly connected sensors like DHT.
Definition:
component.cpp:19
text.h
esphome::copy::CopyText::setup
void setup() override
Definition:
copy_text.cpp:9
esphome::Component
Definition:
component.h:68
esphome::copy::CopyText::dump_config
void dump_config() override
Definition:
copy_text.cpp:16
esphome::text::Text
Base-class for all text inputs.
Definition:
text.h:24
esphome::copy::CopyText::set_source
void set_source(text::Text *source)
Definition:
copy_text.h:11
esphome::copy::CopyText::get_setup_priority
float get_setup_priority() const override
Definition:
copy_text.h:14
esphome::copy::CopyText::source_
text::Text * source_
Definition:
copy_text.h:19
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
component.h
esphome::copy::CopyText
Definition:
copy_text.h:9
esphome::copy::CopyText::control
void control(const std::string &value) override
Definition:
copy_text.cpp:18
Generated by
1.8.13