ESPHome
2025.5.0
Loading...
Searching...
No Matches
esphome
components
lilygo_t5_47
touchscreen
lilygo_t5_47_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/automation.h
"
6
#include "
esphome/core/component.h
"
7
#include "
esphome/core/hal.h
"
8
9
#include <vector>
10
11
namespace
esphome
{
12
namespace
lilygo_t5_47 {
13
14
using namespace
touchscreen;
15
16
class
LilygoT547Touchscreen
:
public
Touchscreen
,
public
i2c::I2CDevice
{
17
public
:
18
void
setup
()
override
;
19
20
void
dump_config
()
override
;
21
22
void
set_interrupt_pin
(
InternalGPIOPin
*pin) { this->
interrupt_pin_
= pin; }
23
24
protected
:
25
void
update_touches
()
override
;
26
27
InternalGPIOPin
*
interrupt_pin_
;
28
};
29
30
}
// namespace lilygo_t5_47
31
}
// namespace esphome
esphome::InternalGPIOPin
Definition
gpio.h:86
esphome::i2c::I2CDevice
This Class provides the methods to read/write bytes from/to an i2c device.
Definition
i2c.h:133
esphome::lilygo_t5_47::LilygoT547Touchscreen
Definition
lilygo_t5_47_touchscreen.h:16
esphome::lilygo_t5_47::LilygoT547Touchscreen::update_touches
void update_touches() override
Definition
lilygo_t5_47_touchscreen.cpp:51
esphome::lilygo_t5_47::LilygoT547Touchscreen::setup
void setup() override
Definition
lilygo_t5_47_touchscreen.cpp:26
esphome::lilygo_t5_47::LilygoT547Touchscreen::interrupt_pin_
InternalGPIOPin * interrupt_pin_
Definition
lilygo_t5_47_touchscreen.h:27
esphome::lilygo_t5_47::LilygoT547Touchscreen::set_interrupt_pin
void set_interrupt_pin(InternalGPIOPin *pin)
Definition
lilygo_t5_47_touchscreen.h:22
esphome::lilygo_t5_47::LilygoT547Touchscreen::dump_config
void dump_config() override
Definition
lilygo_t5_47_touchscreen.cpp:98
esphome::touchscreen::Touchscreen
Definition
touchscreen.h:45
component.h
automation.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