LIB for resistiv touchscreen connected to 4 mbed pins Use SPI_TFT lib

Fork of Touch_tft by Peter Drescher

Revision:
3:1c2df48aa2eb
Parent:
1:1745fdf054b5
--- a/touch_tft.h	Sun Sep 04 21:23:31 2011 +0000
+++ b/touch_tft.h	Wed Jun 26 21:20:30 2013 +0000
@@ -101,6 +101,8 @@
      */   
     bool is_touched(point a);    
     
+    void printf(const char* txt) { while(*txt) { _putc(*txt++); } }
+    
 protected:
     DigitalInOut _xp;
     DigitalInOut _xm;
@@ -108,8 +110,8 @@
     DigitalInOut _ym;
     AnalogIn     _ax;
     AnalogIn     _ay;
-    PinName xa;
-    PinName ya;
+    PinName xa, xb;
+    PinName ya, yb;
     
     
     unsigned short x_a,y_a;