Adafruit FT6206 Arduino Library
Public Member Functions | List of all members
Adafruit_FT6206 Class Reference

Class that stores state and functions for interacting with FT6206 capacitive touch chips. More...

#include <Adafruit_FT6206.h>

Public Member Functions

 Adafruit_FT6206 (void)
 Instantiates a new FT6206 class.
 
bool begin (uint8_t thresh=FT62XX_DEFAULT_THRESHOLD, TwoWire *theWire=&Wire, uint8_t i2c_addr=FT62XX_DEFAULT_ADDR)
 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...
 

Detailed Description

Class that stores state and functions for interacting with FT6206 capacitive touch chips.

Member Function Documentation

◆ begin()

bool Adafruit_FT6206::begin ( uint8_t  thresh = FT62XX_DEFAULT_THRESHOLD,
TwoWire *  theWire = &Wire,
uint8_t  i2c_addr = FT62XX_DEFAULT_ADDR 
)

Setups the I2C interface and hardware, identifies if chip is found.

Parameters
threshOptional threshhold-for-touch value, default is FT6206_DEFAULT_THRESHOLD but you can try changing it if your screen is too/not sensitive. You can also try 0 to not change the threshold.
theWireWhich I2C bus to use, defaults to &Wire
i2c_addrThe I2C address we expect to find the touch panel at
Returns
True if an FT captouch 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
nThe # 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: