ESPHome
2026.11.0-dev
Loading...
Searching...
No Matches
esphome
components
icnt86
icnt86.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::icnt86
{
9
10
class
ICNT86Touchscreen
:
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
InternalGPIOPin
*
interrupt_pin_
{};
21
GPIOPin
*
reset_pin_
{
nullptr
};
22
};
23
24
}
// namespace esphome::icnt86
esphome::GPIOPin
Definition
gpio_pin.h:61
esphome::esp32::ESP32InternalGPIOPin
Definition
gpio.h:14
esphome::i2c::I2CDevice
This Class provides the methods to read/write bytes from/to an i2c device.
Definition
i2c.h:132
esphome::icnt86::ICNT86Touchscreen
Definition
icnt86.h:10
esphome::icnt86::ICNT86Touchscreen::dump_config
void dump_config() override
Definition
icnt86.cpp:77
esphome::icnt86::ICNT86Touchscreen::interrupt_pin_
InternalGPIOPin * interrupt_pin_
Definition
icnt86.h:20
esphome::icnt86::ICNT86Touchscreen::update_touches
void update_touches() override
Definition
icnt86.cpp:37
esphome::icnt86::ICNT86Touchscreen::set_interrupt_pin
void set_interrupt_pin(InternalGPIOPin *pin)
Definition
icnt86.h:15
esphome::icnt86::ICNT86Touchscreen::set_reset_pin
void set_reset_pin(GPIOPin *pin)
Definition
icnt86.h:16
esphome::icnt86::ICNT86Touchscreen::setup
void setup() override
Definition
icnt86.cpp:12
esphome::icnt86::ICNT86Touchscreen::reset_pin_
GPIOPin * reset_pin_
Definition
icnt86.h:21
esphome::touchscreen::Touchscreen
Definition
touchscreen.h:44
component.h
hal.h
i2c.h
esphome::icnt86
Definition
icnt86.cpp:4
touchscreen.h
Generated by
1.12.0