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

Files at this revision

API Documentation at this revision

Comitter:
TickTock
Date:
Sun Mar 03 17:23:19 2013 +0000
Parent:
7:a57e08a915d7
Commit message:
merged touch_tftx2 branches

Changed in this revision

TOUCH_TFTx2.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r a57e08a915d7 -r bea9d962940f TOUCH_TFTx2.lib
--- a/TOUCH_TFTx2.lib	Sat Mar 02 15:09:40 2013 +0000
+++ b/TOUCH_TFTx2.lib	Sun Mar 03 17:23:19 2013 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/TickTock/code/TOUCH_TFTx2/#b322eddc57c7
+http://mbed.org/users/TickTock/code/TOUCH_TFTx2/#ce7ae1584207
diff -r a57e08a915d7 -r bea9d962940f main.cpp
--- 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 = ");