ESPHome
2024.11.3
esphome
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
setup
void setup()
esphome::lilygo_t5_47::LilygoT547Touchscreen::set_interrupt_pin
void set_interrupt_pin(InternalGPIOPin *pin)
Definition:
lilygo_t5_47_touchscreen.h:22
esphome::InternalGPIOPin
Definition:
gpio.h:79
automation.h
hal.h
touchscreen.h
esphome::lilygo_t5_47::LilygoT547Touchscreen::interrupt_pin_
InternalGPIOPin * interrupt_pin_
Definition:
lilygo_t5_47_touchscreen.h:27
esphome::lilygo_t5_47::LilygoT547Touchscreen
Definition:
lilygo_t5_47_touchscreen.h:16
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
component.h
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
i2c.h
Generated by
1.8.13