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 [http://www.henningkarlsen.com/electronics/library.php?id=55] 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:
The parameters are:
TCLK, TCS, TDIN, TDOUT, IRQ
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:
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.