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:
- 5:652684757b6b
- Parent:
- 4:b9ff3c020e7f
- Child:
- 6:eb7a74dc809f
diff -r b9ff3c020e7f -r 652684757b6b FT6206.h --- a/FT6206.h Mon Mar 23 22:02:01 2015 +0000 +++ b/FT6206.h Mon Mar 23 22:12:24 2015 +0000 @@ -118,11 +118,21 @@ }; class FT6206 { - public: - + public: + //!Creates an instance of the class. + /*! + FT6206 display touchscreen at I2C using I2C port pins sda, scl, and interrupt pins. + TMP102 + \param sda, scl, interrupt + */ FT6206(PinName sda, PinName scl, PinName interrupt); - - bool begin(uint8_t thresh = FT6206_DEFAULT_THRESSHOLD); + + /*! + Destroys instance. + */ + ~FT6206(); + + bool init(uint8_t thresh = FT6206_DEFAULT_THRESSHOLD); void writeRegister8(char reg, char val); char readRegister8(char reg);