|
| Adafruit_FT6206 (void) |
| Instantiates a new FT6206 class.
|
|
boolean | begin (uint8_t thresh=FT6206_DEFAULT_THRESSHOLD) |
| Setups the I2C interface and hardware, identifies if chip is found. More...
|
|
uint8_t | touched (void) |
| Determines if there are any touches detected. More...
|
|
TS_Point | getPoint (uint8_t n=0) |
| Queries the chip and retrieves a point data. More...
|
|
◆ begin()
boolean Adafruit_FT6206::begin |
( |
uint8_t |
thresh = FT6206_DEFAULT_THRESSHOLD | ) |
|
Setups the I2C interface and hardware, identifies if chip is found.
- Parameters
-
thresh | Optional threshhold-for-touch value, default is FT6206_DEFAULT_THRESSHOLD but you can try changing it if your screen is too/not sensitive. |
- Returns
- True if an FT6206 is found, false on any failure
◆ touched()
uint8_t Adafruit_FT6206::touched |
( |
void |
| ) |
|
Determines if there are any touches detected.
- Returns
- Number of touches detected, can be 0, 1 or 2
◆ getPoint()
TS_Point Adafruit_FT6206::getPoint |
( |
uint8_t |
n = 0 | ) |
|
Queries the chip and retrieves a point data.
- Parameters
-
n | The # index (0 or 1) to the points we can detect. In theory we can detect 2 points but we've found that you should only use this for single-touch since the two points cant share the same half of the screen. |
- Returns
- TS_Point object that has the x and y coordinets set. If the z coordinate is 0 it means the point is not touched. If z is 1, it is currently touched.
The documentation for this class was generated from the following files: