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
5
6namespace roo_display {
7
8class TouchFt6x36 : public BasicTouchDevice<2> {
9 public:
10 // Constructs the driver assuming the default I2C bus.
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.
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
int readTouch(TouchPoint *point) override
void initTouch() override
Initialize the touch controller.
Defines 140 opaque HTML named colors.
A single touch point returned by a touch controller.
Definition device.h:390