ESPHome
2025.9.0-dev
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
};
20
21
}
// namespace cst226
22
}
// namespace esphome
binary_sensor.h
esphome::Component
Definition
component.h:71
esphome::Parented
Helper class to easily give an object a parent of type T.
Definition
helpers.h:656
esphome::binary_sensor::BinarySensor
Base class for all binary_sensor-type classes.
Definition
binary_sensor.h:36
esphome::binary_sensor::BinarySensor::state
bool state
Definition
binary_sensor.h:65
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