ESPHome
2025.3.3
Main Page
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
y
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
d
e
f
i
j
l
m
n
p
q
r
s
t
u
v
+
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
c
d
o
p
s
t
v
w
+
Enumerations
b
c
e
f
i
m
n
p
r
s
t
v
+
Enumerator
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Related Functions
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
l
m
o
p
s
t
u
+
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Modules
Pages
esphome
esphome
components
uart
button
uart_button.cpp
Go to the documentation of this file.
1
#include "
uart_button.h
"
2
#include "
esphome/core/log.h
"
3
4
namespace
esphome
{
5
namespace
uart {
6
7
static
const
char
*
const
TAG
=
"uart.button"
;
8
9
void
UARTButton::press_action
() {
10
ESP_LOGD(TAG,
"'%s': Sending data..."
, this->
get_name
().c_str());
11
this->
write_array
(this->
data_
.data(), this->
data_
.size());
12
}
13
14
void
UARTButton::dump_config
() { LOG_BUTTON(
""
,
"UART Button"
,
this
); }
15
16
}
// namespace uart
17
}
// namespace esphome
esphome::uart::UARTDevice::write_array
void write_array(const uint8_t *data, size_t len)
Definition:
uart.h:21
uart_button.h
esphome::spi::TAG
const char *const TAG
Definition:
spi.cpp:8
esphome::uart::UARTButton::data_
std::vector< uint8_t > data_
Definition:
uart_button.h:20
esphome::uart::UARTButton::dump_config
void dump_config() override
Definition:
uart_button.cpp:14
esphome::uart::UARTButton::press_action
void press_action() override
Definition:
uart_button.cpp:9
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
log.h
esphome::EntityBase::get_name
const StringRef & get_name() const
Definition:
entity_base.cpp:10
Generated by
1.8.13