Modified to work with two displays

Dependencies:   SPI_TFTx2 TFT_fonts TOUCH_TFTx2 mbed

Fork of touch by Peter Drescher

Based on original code by Peter Dreshner at http://mbed.org/users/dreschpe/notebook/micro-paint/

Uses two LCD panels connected as per the following schematic: /media/uploads/TickTock/lcdsch.jpg /media/uploads/TickTock/_scaled_spi_tftx2.jpg

Revision:
8:bea9d962940f
Parent:
6:9f5fd9246b1e
--- a/main.cpp	Sat Mar 02 15:09:40 2013 +0000
+++ b/main.cpp	Sun Mar 03 17:23:19 2013 +0000
@@ -22,7 +22,11 @@
     tt.cls();                // clear the screen
     tt.set_font((unsigned char*) Arial12x12);  // select the font
     tt.set_orientation(1);
-    tt.calibrate();           // calibrate the touch
+    if(false){ // bypass calibration
+        tt.setcal(5570, 34030, 80, 108, 33700, 5780, 82, 108, 32500);
+    } else {  // calibrate the touch
+        tt.calibrate();   
+    }
     tt.set_display(2);       // select both displays
     tt.locate(0,0);
     printf(" x = ");