ESPHome
2026.8.0-dev
Loading...
Searching...
No Matches
esphome
components
cst328
binary_sensor
cst328_button.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/components/binary_sensor/binary_sensor.h
"
4
#include "
esphome/core/component.h
"
5
#include "
esphome/core/helpers.h
"
6
#include "
../touchscreen/cst328_touchscreen.h
"
7
8
namespace
esphome::cst328
{
9
10
class
CST328Button
:
public
binary_sensor::BinarySensor
,
11
public
Component
,
12
public
CST328ButtonListener
,
13
public
Parented
<CST328Touchscreen> {
14
public
:
15
void
setup
()
override
;
16
void
dump_config
()
override
;
17
void
update_button
(
bool
state
)
override
;
18
};
19
20
}
// namespace esphome::cst328
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:1875
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::cst328::CST328Button
Definition
cst328_button.h:13
esphome::cst328::CST328Button::setup
void setup() override
Definition
cst328_button.cpp:7
esphome::cst328::CST328Button::update_button
void update_button(bool state) override
Definition
cst328_button.cpp:14
esphome::cst328::CST328Button::dump_config
void dump_config() override
Definition
cst328_button.cpp:12
esphome::cst328::CST328ButtonListener
Definition
cst328_touchscreen.h:26
component.h
cst328_touchscreen.h
helpers.h
esphome::cst328
Definition
cst328_button.cpp:4
Generated by
1.12.0