roo_display
API Documentation for roo_display
Loading...
Searching...
No Matches
touch_ft6x36.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
roo_display/driver/common/basic_touch.h
"
4
#include "
roo_display/hal/i2c.h
"
5
6
namespace
roo_display
{
7
8
class
TouchFt6x36
:
public
BasicTouchDevice
<2> {
9
public
:
10
// Constructs the driver assuming the default I2C bus.
11
TouchFt6x36
();
12
13
// Constructs the driver using the specified I2C bus (passed as the first
14
// argument).
15
// When using Arduino, you can pass a Wire& object reference.
16
// When using esp-idf, you can pass an i2c_port_num_t.
17
TouchFt6x36
(
I2cMasterBusHandle
i2c
);
18
19
// Initializes the driver (performing GPIO setup and calling reset()).
20
// Must be called once.
21
void
initTouch
()
override
;
22
23
int
readTouch
(
TouchPoint
*
point
)
override
;
24
25
private
:
26
I2cSlaveDevice
i2c_slave_;
27
};
28
29
}
// namespace roo_display
basic_touch.h
roo_display::BasicTouchDevice
Definition
basic_touch.h:14
roo_display::TouchFt6x36
Definition
touch_ft6x36.h:8
roo_display::TouchFt6x36::readTouch
int readTouch(TouchPoint *point) override
Definition
touch_ft6x36.cpp:36
roo_display::TouchFt6x36::TouchFt6x36
TouchFt6x36()
Definition
touch_ft6x36.cpp:32
roo_display::TouchFt6x36::initTouch
void initTouch() override
Initialize the touch controller.
Definition
touch_ft6x36.cpp:34
i2c.h
roo_display
Defines 140 opaque HTML named colors.
Definition
roo_display.cpp:7
roo_display::BlendOp
Definition
blending.h:200
roo_display::TouchPoint
A single touch point returned by a touch controller.
Definition
device.h:390
temp_repos
roo_display
src
roo_display
driver
touch_ft6x36.h
Generated by
1.9.8