Ok, now that I have got the 7" TFT working I'm trying to get the touch screen working....
I've installed Henning's Utouch library [Electronics - Henning Karlsen] and now I'm trying to see if I can get it to work.
Strangly when I run the Utouch demo the display reverses again! ie it works backwards from the UTFT demo but anyway I'll look at that later, for now I can reverse the screen at will so it's not an issue.
The Utouch demo starts off initialising the screen etc so I've copied those bits from UTFT and the display works complete with buttons.
The touch option does nothing, here is the init line for touch:
UTouch myTouch(6,5,4,3,2);
The parameters are:
TCLK, TCS, TDIN, TDOUT, IRQ
so
TCLK=6
TCS=5
TDIN=4
TDOUT=3
IRQ=2
Looking at the DUE pin out sheet and the CTE shield it would appear that it is connected like this for the 32 pin TFT:
TCLK = CLK on the ICSP header = Digital pin 76
TCS = 31 on the header which according to the shield circuit diagram should be = Digital pin 5
TDIN = miso on the ICSP header = Digital pin 74
TDOUT = mosi on the ICSP header = Digital pin 75
IRQ = 26 on the header which according to the shield circuit diagram should be = Digital pin 2
So this would make it:
UTouch myTouch(76,5,74,75,2);
Now I ran it for the first time and the calibration program changed screen when I pressed it first time so I thought it was all working but I couldn't calibrate the screen nor would it do anything else. After re-running the program over and over touch does not work at all. Not sure why the screen changed first time but it isn't working now.
I am going to carry on working on it (as I did with UTFT) but if anyone has any input or has already got this working it would be appreciated.
Also has anyone any idea if any libraries work with the SD card slot on the CTE board using a DUE or better still the micro SD card slot on the TFT.
- I'm running a DUE & IDE 1.52
- 7" 32 pin TFT touch screen display
- CTE shield
- Standard UTFT library (latest version) with my modifications to make it work with 7" screen [see http://arduino.cc/forum/index.php/topic,152053.0.html]
Cheers.