ESPHome
2024.12.2
esphome
esphome
components
copy
button
copy_button.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/component.h
"
4
#include "
esphome/components/button/button.h
"
5
6
namespace
esphome
{
7
namespace
copy {
8
9
class
CopyButton
:
public
button::Button
,
public
Component
{
10
public
:
11
void
set_source
(
button::Button
*source) {
source_
= source; }
12
void
dump_config
()
override
;
13
float
get_setup_priority
()
const override
{
return
setup_priority::DATA
; }
14
15
protected
:
16
void
press_action
()
override
;
17
18
button::Button
*
source_
;
19
};
20
21
}
// namespace copy
22
}
// namespace esphome
esphome::setup_priority::DATA
const float DATA
For components that import data from directly connected sensors like DHT.
Definition:
component.cpp:19
esphome::copy::CopyButton::get_setup_priority
float get_setup_priority() const override
Definition:
copy_button.h:13
esphome::button::Button
Base class for all buttons.
Definition:
button.h:29
esphome::Component
Definition:
component.h:68
button.h
esphome::copy::CopyButton::dump_config
void dump_config() override
Definition:
copy_button.cpp:9
esphome::copy::CopyButton
Definition:
copy_button.h:9
esphome::copy::CopyButton::press_action
void press_action() override
Definition:
copy_button.cpp:11
esphome::copy::CopyButton::source_
button::Button * source_
Definition:
copy_button.h:18
esphome::copy::CopyButton::set_source
void set_source(button::Button *source)
Definition:
copy_button.h:11
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
component.h
Generated by
1.8.13