ESPHome
2026.6.0-dev
Loading...
Searching...
No Matches
esphome
components
ektf2232
touchscreen
ektf2232.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/automation.h
"
6
#include "
esphome/core/component.h
"
7
#include "
esphome/core/hal.h
"
8
9
namespace
esphome::ektf2232
{
10
11
using namespace
touchscreen;
12
13
class
EKTF2232Touchscreen
:
public
Touchscreen
,
public
i2c::I2CDevice
{
14
public
:
15
void
setup
()
override
;
16
void
dump_config
()
override
;
17
18
void
set_interrupt_pin
(
InternalGPIOPin
*pin) { this->
interrupt_pin_
= pin; }
19
void
set_reset_pin
(
GPIOPin
*pin) { this->
reset_pin_
= pin; }
20
21
void
set_power_state
(
bool
enable);
22
bool
get_power_state
();
23
24
protected
:
25
void
hard_reset_
();
26
bool
soft_reset_
();
27
void
update_touches
()
override
;
28
29
InternalGPIOPin
*
interrupt_pin_
;
30
GPIOPin
*
reset_pin_
;
31
};
32
33
}
// namespace esphome::ektf2232
esphome::GPIOPin
Definition
gpio.h:59
esphome::InternalGPIOPin
Definition
gpio.h:105
esphome::ektf2232::EKTF2232Touchscreen
Definition
ektf2232.h:13
esphome::ektf2232::EKTF2232Touchscreen::reset_pin_
GPIOPin * reset_pin_
Definition
ektf2232.h:30
esphome::ektf2232::EKTF2232Touchscreen::setup
void setup() override
Definition
ektf2232.cpp:17
esphome::ektf2232::EKTF2232Touchscreen::get_power_state
bool get_power_state()
Definition
ektf2232.cpp:91
esphome::ektf2232::EKTF2232Touchscreen::update_touches
void update_touches() override
Definition
ektf2232.cpp:62
esphome::ektf2232::EKTF2232Touchscreen::dump_config
void dump_config() override
Definition
ektf2232.cpp:125
esphome::ektf2232::EKTF2232Touchscreen::soft_reset_
bool soft_reset_()
Definition
ektf2232.cpp:106
esphome::ektf2232::EKTF2232Touchscreen::set_reset_pin
void set_reset_pin(GPIOPin *pin)
Definition
ektf2232.h:19
esphome::ektf2232::EKTF2232Touchscreen::hard_reset_
void hard_reset_()
Definition
ektf2232.cpp:99
esphome::ektf2232::EKTF2232Touchscreen::set_power_state
void set_power_state(bool enable)
Definition
ektf2232.cpp:85
esphome::ektf2232::EKTF2232Touchscreen::interrupt_pin_
InternalGPIOPin * interrupt_pin_
Definition
ektf2232.h:29
esphome::ektf2232::EKTF2232Touchscreen::set_interrupt_pin
void set_interrupt_pin(InternalGPIOPin *pin)
Definition
ektf2232.h: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
automation.h
hal.h
i2c.h
esphome::ektf2232
Definition
ektf2232.cpp:7
touchscreen.h
Generated by
1.12.0