ESPHome
2026.6.0-dev
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::axs15231
{
9
10
class
AXS15231Touchscreen
:
public
touchscreen::Touchscreen
,
public
i2c::I2CDevice
{
11
public
:
12
void
setup
()
override
;
13
void
dump_config
()
override
;
14
15
void
set_interrupt_pin
(
InternalGPIOPin
*pin) { this->
interrupt_pin_
= pin; }
16
void
set_reset_pin
(
GPIOPin
*pin) { this->
reset_pin_
= pin; }
17
18
protected
:
19
void
update_touches
()
override
;
20
21
InternalGPIOPin
*
interrupt_pin_
{};
22
GPIOPin
*
reset_pin_
{};
23
};
24
25
}
// namespace esphome::axs15231
esphome::GPIOPin
Definition
gpio.h:59
esphome::InternalGPIOPin
Definition
gpio.h:105
esphome::axs15231::AXS15231Touchscreen
Definition
axs15231_touchscreen.h:10
esphome::axs15231::AXS15231Touchscreen::update_touches
void update_touches() override
Definition
axs15231_touchscreen.cpp:39
esphome::axs15231::AXS15231Touchscreen::set_reset_pin
void set_reset_pin(GPIOPin *pin)
Definition
axs15231_touchscreen.h:16
esphome::axs15231::AXS15231Touchscreen::set_interrupt_pin
void set_interrupt_pin(InternalGPIOPin *pin)
Definition
axs15231_touchscreen.h:15
esphome::axs15231::AXS15231Touchscreen::interrupt_pin_
InternalGPIOPin * interrupt_pin_
Definition
axs15231_touchscreen.h:21
esphome::axs15231::AXS15231Touchscreen::dump_config
void dump_config() override
Definition
axs15231_touchscreen.cpp:55
esphome::axs15231::AXS15231Touchscreen::reset_pin_
GPIOPin * reset_pin_
Definition
axs15231_touchscreen.h:22
esphome::axs15231::AXS15231Touchscreen::setup
void setup() override
Definition
axs15231_touchscreen.cpp:18
esphome::i2c::I2CDevice
This Class provides the methods to read/write bytes from/to an i2c device.
Definition
i2c.h:132
esphome::touchscreen::Touchscreen
Definition
touchscreen.h:44
component.h
hal.h
i2c.h
esphome::axs15231
Definition
axs15231_touchscreen.cpp:6
touchscreen.h
Generated by
1.12.0