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

Revision:
4:b9ff3c020e7f
Parent:
3:8e16a8987166
Child:
5:652684757b6b
--- a/FT6206.cpp	Mon Mar 23 19:59:37 2015 +0000
+++ b/FT6206.cpp	Mon Mar 23 22:02:01 2015 +0000
@@ -1,19 +1,38 @@
-/*************************************************** 
-  This is a library for the Adafruit Capacitive Touch Screens
-
-  ----> http://www.adafruit.com/products/1947
- 
-  Check out the links above for our tutorials and wiring diagrams
-  This chipset uses I2C to communicate
+/*
+Copyright (c) 2015 Jack Berkhout
 
-  Adafruit invests time and resources providing this open source code,
-  please support Adafruit and open-source hardware by purchasing
-  products from Adafruit!
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+ 
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+ 
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
 
-  Written by Limor Fried/Ladyada for Adafruit Industries.
-  MIT license, all text above must be included in any redistribution
- ****************************************************/
-/*
+This is a library for the Adafruit Capacitive Touch Screens
+  ----> http://www.adafruit.com/products/1947
+This chipset uses I2C to communicate
+
+Based on Arduino written by Limor Fried/Ladyada for Adafruit Industries.
+
+On the shield, these jumpers were bridged:
+Int - #7 (default)
+SCK - 13 (default)
+SO  - 12 (default)
+SI  - 11
+SCL - SCL
+SDA - SDA
+
 Usage:
 
 #include "mbed.h"
@@ -73,8 +92,6 @@
 */
 /**************************************************************************/
 bool FT6206::begin(uint8_t threshhold) {
-////  Wire.begin();
-
   // change threshhold to be higher/lower
   writeRegister8(FT6206_REG_THRESHHOLD, threshhold);