ESPHome
2026.5.1
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::cst226
{
8
9
class
CST226Button
:
public
binary_sensor::BinarySensor
,
10
public
Component
,
11
public
CST226ButtonListener
,
12
public
Parented
<CST226Touchscreen> {
13
public
:
14
void
setup
()
override
;
15
void
dump_config
()
override
;
16
17
void
update_button
(
bool
state
)
override
;
18
};
19
20
}
// namespace esphome::cst226
binary_sensor.h
esphome::Component
Definition
component.h:145
esphome::Parented
Helper class to easily give an object a parent of type T.
Definition
helpers.h:1861
esphome::binary_sensor::BinarySensor
Base class for all binary_sensor-type classes.
Definition
binary_sensor.h:33
esphome::binary_sensor::BinarySensor::state
bool state
The current state of this binary sensor. Also used as the backing storage for StatefulEntityBase.
Definition
binary_sensor.h:71
esphome::cst226::CST226Button
Definition
cs226_button.h:12
esphome::cst226::CST226Button::update_button
void update_button(bool state) override
Definition
cstt6_button.cpp:15
esphome::cst226::CST226Button::dump_config
void dump_config() override
Definition
cstt6_button.cpp:13
esphome::cst226::CST226Button::setup
void setup() override
Definition
cstt6_button.cpp:8
esphome::cst226::CST226ButtonListener
Definition
cst226_touchscreen.h:13
cst226_touchscreen.h
helpers.h
esphome::cst226
Definition
cs226_button.h:7
Generated by
1.12.0