2.4 inch TFT touch LCD Screen Module For Arduino UNO R3 SD low price jocks

I just got a TFT that didn't work "out of the box" for me either.

Here is something you can try:

  • Copy the AdaFruit driver into a new directory
  • Rename the .cpp and .h files to match the directory name. This creates a new library
  • Edit the .cpp
  • Edit the .cpp file and look for the line uint16_t Adafruit_TFTLCD::readID(void) {,[/li]
  • Add these right after that line:[/list]
//return 0x9325;
//return 0x9328;
//return 0x9341;
//return 0x8357;
//return 0x7575;

[/li]

  • Starting at the BOTTOM, uncomment the lines one by one and test, see if any of them work.
  • If none of them work, re-comment all the lines then edit the .h file and comment (or uncomment) the line //#define USE_ADAFRUIT_SHIELD_PINOUT 1
  • Try all the above return options again, remember to start at the BOTTOM

Took a while, but it worked for me.

As it turned out, even though my board was a shield, I had to configure the code to work as breakout.

After that it I had to experiment a bit more with the pins to get the touch screen working.