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.cpp
- Revision:
- 5:652684757b6b
- Parent:
- 4:b9ff3c020e7f
- Child:
- 6:eb7a74dc809f
--- a/FT6206.cpp Mon Mar 23 22:02:01 2015 +0000 +++ b/FT6206.cpp Mon Mar 23 22:12:24 2015 +0000 @@ -85,15 +85,19 @@ m_interrupt.mode(PullUp); } +FT6206::~FT6206() +{ + +} /**************************************************************************/ /*! @brief Setups the HW */ /**************************************************************************/ -bool FT6206::begin(uint8_t threshhold) { +bool FT6206::init(uint8_t threshhold) { // change threshhold to be higher/lower - writeRegister8(FT6206_REG_THRESHHOLD, threshhold); + writeRegister8(FT6206_REG_THRESHHOLD, FT6206_DEFAULT_THRESSHOLD); if (readRegister8(FT6206_REG_VENDID) != 17) return false;