I am having trouble getting my new touch screen display to work. Right now I am just trying to get the display to work and the SD and touch I will worry about later. I cannot seem to be able to get the display to do anything. Here is my hardware:
Arduino DUE
TFT/SD Shield for Arduino DUE LCD Module SD Card 2.8 3.2 link
3.2" TFT LCD Touch Panel with PCB adapter 262K screen IC SSD1289 for Arduino link
Here is what I have tried:
Downloaded the UTFT library and installed
I am using the example sketch Examples\UTFT\Arduino (ARM)+Teensy\UTFT_Demo_320x240
I have tried both commented and uncommenting the "#define CTE_DUE_SHIELD 1" in the HW_ARM_defines.h in the \hardware\arm folder of the UTFT library
I have tried setting the line in the example sketch to: UTFT myGLCD(SSD1289,25,26,27,28), UTFT myGLCD(SSD1289,38,39,40,41)
I am at a loss. I believe that the "UTFT myGLCD(SSD1289,25,26,27,28)" line should be right since the vendor states that the display control pins are PD0-PD3 which relate to DUE pins 25-28.
No matter what I try the display doesn't do anything. I have searched everywhere I could find both on this forum and other places on the internet and I can't find any solution. Can someone please help me?
Never mind my previous post. Your first post has got me going. After a while I was able to find the modified library you mentioned and got the display going.
For those that may experience the same problem, here are some details.
Using an Arduino DUE
The display adapter is a sainsmart shield that has "CTE TFT LCD/SD Shield for Arduino Due" printed on it
The display itself is a 3.2" TFT 320x240 LCD display with touch screen and SD card slot. It has TFT_320QVT_9341 printed on the pcb
uncomment the "#define CTE_DUE_SHIELD 1" in the HW_ARM_defines.h in the \hardware\arm folder of the UTFT library
Use the example sketch from Examples\UTFT\Arduino (ARM)+Teensy\UTFT_Demo_320x240
For the setup line in the example sketch, change it to UTFT myGLCD(ILI9341_16,25,26,27,28);
That's it. That got the display working fine. Thanks to @david_prentice for pointing me in the right direction, and to @TFTLCDCyg for creating and sharing the UTFT library, and to the original author of the UTFT library.
This is an excellent example of a well presented question getting solved quickly.
Since you had posted clickable links, it meant that anyone could see the photos, details etc.
I was on a Tablet so it was not practical to post links or long URLs. But at least my hints got you in the right direction. I still suggest that you examine your Sainsmart Due Adapter carefully.
To run this display on a Mega, you need a Mega Adapter shield.