|
Adafruit FT6206 Arduino Library
|
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... | |
Class that stores state and functions for interacting with FT6206 capacitive touch chips.
| 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.
| thresh | Optional 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. |
| theWire | Which I2C bus to use, defaults to &Wire |
| i2c_addr | The I2C address we expect to find the touch panel at |
| uint8_t Adafruit_FT6206::touched | ( | void | ) |
Determines if there are any touches detected.
| TS_Point Adafruit_FT6206::getPoint | ( | uint8_t | n = 0 | ) |
Queries the chip and retrieves a point data.
| 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. |
1.8.13