FT6206 Library for Adafruit 2.8" TFT Touch Shield for Arduino w/Capacitive Touch
Dependents: ArchPro_TFT ATT_AWS_IoT_demo_v06 ArchPro_TFT TermProject
Diff: FT6206.h
- Revision:
- 11:9e1fc2233b0e
- Parent:
- 10:535d2140db2c
diff -r 535d2140db2c -r 9e1fc2233b0e FT6206.h --- a/FT6206.h Tue Mar 24 01:31:42 2015 +0000 +++ b/FT6206.h Tue Apr 28 21:12:26 2015 +0000 @@ -23,7 +23,8 @@ ----> http://www.adafruit.com/products/1947 This chipset uses I2C to communicate -Based on Arduino written by Limor Fried/Ladyada for Adafruit Industries. +Based on code by Limor Fried/Ladyada for Adafruit Industries. +MIT license, all text above must be included in any redistribution. On the shield, these jumpers were bridged: Int - #7 (default) @@ -161,17 +162,31 @@ bool touched(void); TS_Point getPoint(void); + TS_Point clearPoint(void); + + void checkDataReceived(void); + + bool getDataReceived(void); + + void waitScreenTapped(void); bool getTouchPoint(TS_Point &p); + Ticker tick; + private: - DigitalIn m_interrupt; +// DigitalIn m_interrupt; + InterruptIn m_interrupt; + I2C m_i2c; int m_addr; char data[2]; uint8_t touches; uint16_t touchX[2], touchY[2], touchID[2]; + + bool DataReceived; + };