ESPHome
2025.5.0
Loading...
Searching...
No Matches
esphome
components
axs15231
touchscreen
axs15231_touchscreen.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/components/i2c/i2c.h
"
4
#include "
esphome/components/touchscreen/touchscreen.h
"
5
#include "
esphome/core/component.h
"
6
#include "
esphome/core/hal.h
"
7
8
namespace
esphome
{
9
namespace
axs15231 {
10
11
class
AXS15231Touchscreen
:
public
touchscreen::Touchscreen
,
public
i2c::I2CDevice
{
12
public
:
13
void
setup
()
override
;
14
void
dump_config
()
override
;
15
16
void
set_interrupt_pin
(
InternalGPIOPin
*pin) { this->
interrupt_pin_
= pin; }
17
void
set_reset_pin
(
GPIOPin
*pin) { this->
reset_pin_
= pin; }
18
19
protected
:
20
void
update_touches
()
override
;
21
22
InternalGPIOPin
*
interrupt_pin_
{};
23
GPIOPin
*
reset_pin_
{};
24
};
25
26
}
// namespace axs15231
27
}
// namespace esphome
esphome::GPIOPin
Definition
gpio.h:50
esphome::InternalGPIOPin
Definition
gpio.h:86
esphome::axs15231::AXS15231Touchscreen
Definition
axs15231_touchscreen.h:11
esphome::axs15231::AXS15231Touchscreen::update_touches
void update_touches() override
Definition
axs15231_touchscreen.cpp:42
esphome::axs15231::AXS15231Touchscreen::set_reset_pin
void set_reset_pin(GPIOPin *pin)
Definition
axs15231_touchscreen.h:17
esphome::axs15231::AXS15231Touchscreen::set_interrupt_pin
void set_interrupt_pin(InternalGPIOPin *pin)
Definition
axs15231_touchscreen.h:16
esphome::axs15231::AXS15231Touchscreen::interrupt_pin_
InternalGPIOPin * interrupt_pin_
Definition
axs15231_touchscreen.h:22
esphome::axs15231::AXS15231Touchscreen::dump_config
void dump_config() override
Definition
axs15231_touchscreen.cpp:58
esphome::axs15231::AXS15231Touchscreen::reset_pin_
GPIOPin * reset_pin_
Definition
axs15231_touchscreen.h:23
esphome::axs15231::AXS15231Touchscreen::setup
void setup() override
Definition
axs15231_touchscreen.cpp:19
esphome::i2c::I2CDevice
This Class provides the methods to read/write bytes from/to an i2c device.
Definition
i2c.h:133
esphome::touchscreen::Touchscreen
Definition
touchscreen.h:45
component.h
hal.h
i2c.h
esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition
a01nyub.cpp:7
touchscreen.h
Generated by
1.12.0