TFT LCD testUsing Adafruit 2.8" TFT Breakout Board PinoutTFT size is 240x320Added delay to the reset methodUnknown LCD driver chip: 4040If using the Adafruit 2.8" TFT Arduino shield, the line: #define USE_ADAFRUIT_SHIELD_PINOUTshould appear in the library header (Adafruit_TFT.h).If using the breakout board, it should NOT be #defined!Also if using the breakout, double-check that all wiringmatches the tutorial.
Try thisI've attached my modified AdaTFTLCD arduino library as a zip file.Unzip this in your arduino libraries directory (There is probably already an AdaTFTLCD directory there rename it before you unzip the one I am providing)Restart the arduino IDE (or it will not be using the new library)Open File->Examples->AdaTFT->graphicstest build that and see if it works.Let me know how it goes
Oops forgot to attach the zip
Please try: https://github.com/JoaoLopesF/SPFD5408RegardsJoao
I've seen customer support from Adafruit say that the C0C0 ID indicates a dataline problem:http://forums.adafruit.com/viewtopic.php?f=47&t=32807&p=162517&hilit=C0C0#p1So I decided to measure all the pin connections with a multi meter and indeed one connection was bad. Fixed a wire over the break and immediately everything worked.
If readID() is called directly after reset() ( as the graphicstest sketch does )the ILI9341 does not have enough time to properly reset before readID() is called.In my case this caused an erroneous id of: 0xC0C0 to be reported.Adding a delay of 2 ms. between readID() and reset() resolves this issue.