ESPHome
2025.6.0
Toggle main menu visibility
Main Page
Topics
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
r
s
t
u
v
w
x
y
z
Typedefs
a
b
d
e
f
i
j
l
m
n
o
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
m
o
p
s
t
v
w
Enumerations
b
c
e
f
i
m
n
p
r
s
t
v
w
Enumerator
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Related Symbols
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
Loading...
Searching...
No Matches
esphome
components
cst226
binary_sensor
cs226_button.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/components/binary_sensor/binary_sensor.h
"
4
#include "
../touchscreen/cst226_touchscreen.h
"
5
#include "
esphome/core/helpers.h
"
6
7
namespace
esphome
{
8
namespace
cst226 {
9
10
class
CST226Button
:
public
binary_sensor::BinarySensor
,
11
public
Component
,
12
public
CST226ButtonListener
,
13
public
Parented
<CST226Touchscreen> {
14
public
:
15
void
setup
()
override
;
16
void
dump_config
()
override
;
17
18
void
update_button
(
bool
state
)
override
;
19
};
10
class
CST226Button
:
public
binary_sensor::BinarySensor
, {
…
};
20
21
}
// namespace cst226
8
namespace
cst226 {
…
}
22
}
// namespace esphome
binary_sensor.h
esphome::Component
Definition
component.h:70
esphome::Parented
Helper class to easily give an object a parent of type T.
Definition
helpers.h:539
esphome::binary_sensor::BinarySensor
Base class for all binary_sensor-type classes.
Definition
binary_sensor.h:37
esphome::binary_sensor::BinarySensor::state
bool state
The current reported state of the binary sensor.
Definition
binary_sensor.h:61
esphome::cst226::CST226Button
Definition
cs226_button.h:13
esphome::cst226::CST226Button::update_button
void update_button(bool state) override
Definition
cstt6_button.cpp:16
esphome::cst226::CST226Button::dump_config
void dump_config() override
Definition
cstt6_button.cpp:14
esphome::cst226::CST226Button::setup
void setup() override
Definition
cstt6_button.cpp:9
esphome::cst226::CST226ButtonListener
Definition
cst226_touchscreen.h:14
cst226_touchscreen.h
helpers.h
esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition
a01nyub.cpp:7
Generated by
1.12.0