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:
3:8e16a8987166
Parent:
2:35e21af6733c
Child:
4:b9ff3c020e7f
--- a/FT6206.cpp	Mon Mar 23 19:56:08 2015 +0000
+++ b/FT6206.cpp	Mon Mar 23 19:59:37 2015 +0000
@@ -16,6 +16,36 @@
 /*
 Usage:
 
+#include "mbed.h"
+#include "SPI_TFT_ILI9341.h"
+#include "FT6206.h"
+#include "Arial12x12.h"
+
+#define PIN_XP          A3
+#define PIN_XM          A1
+#define PIN_YP          A2
+#define PIN_YM          A0
+#define PIN_SCLK        D13
+#define PIN_MISO        D12
+#define PIN_MOSI        D11
+#define PIN_CS_TFT      D10  // chip select pin
+#define PIN_DC_TFT      D9   // data/command select pin.
+#define PIN_RESET_TFT   D8
+//#define PIN_BL_TFT      D7
+#define PIN_CS_SD       D4
+
+#define PORTRAIT        0
+#define LANDSCAPE       1
+
+#define PIN_SCL_FT6206  P0_28
+#define PIN_SDA_FT6206  P0_27
+#define PIN_INT_FT6206  D7
+
+SPI_TFT_ILI9341 TFT(PIN_MOSI, PIN_MISO, PIN_SCLK, PIN_CS_TFT, PIN_RESET_TFT, PIN_DC_TFT, "TFT"); // mosi, miso, sclk, cs, reset, dc 
+FT6206 FT6206(PIN_SDA_FT6206, PIN_SCL_FT6206, PIN_INT_FT6206); // sda, scl, int
+
+int main()
+{
     while(1) {
 //        if (FT6206.touched()) {
         if (FT6206.dataReceived()) {
@@ -24,6 +54,7 @@
             printf("Touch %3d %3d\n", p.x, p.y);
         }
     }
+}
 */
 
 #include "FT6206.h"