The TFT 2.4 is cheap TFT, that generally is from China, without documentation or libraries for it.
When we try to use the TFT 2.4 with SPFD5408 controller in sketches with Adafruit TFT libraries, several things can happen :
• White Screen
• All screen with noise
• Touch not works or is inverted (coordinate Y)
• The colors are inverted
• And other things
After trying for several days trying the solutions I found on the web, and none works 100%. So I decided to do an library specific to this controller.
I changed the Adafruit libraries for TFT: GFX , TFTLCD and TouchScreen. I join all in this one library, the library SPFD5408, to avoid problems with duplicate libraries and enables also have the original library Adafruit ready for use in other projects with another TFT hardware. Download the SPFD5408 Library
In case it's of use to anyone else, I solved my problem by adding a delay between calls to waitOneTouch(). Apparently it's not a buffer issue, but rather a bounce issue.
Just download and seem to have it kinda working... but I'm getting a split screen. so what ever you are displaying is split and is displayed in 1/2 the screen, and then displayed again in the other 1/2... so I see your text "Groop I Implore you... " displayed twice in 1/2 the screen as it rotates through printing in landscape and portrait... thoughts? I bought this TFT http://www.ebay.com/itm/172088465109?_trksid=p2060353.m2749.l2649&ssPageName=STRK:MEBIDX:IT
When I run theSPFD5408 Graphicstest with Adafrut unit16_t identifier code uncommented, I get
TFT LCD test Using Adafruit 2.8" TFT Breakout Board Pinout Found ILI9341 LCD driver Benchmark Time (microseconds) Screen fill 1322516 Text 421928 Lines 4214832 Horiz/Vert Lines 140444 Rectangles (outline) 104472 Rectangles (filled) 3069832 Circles (filled) 1365436 Circles (outline) 1841148 Triangles (outline) 1336944 Triangles (filled) 1749568 Rounded rects (outline) 613452 Rounded rects (filled) 3636560 Done!
Works only for ATMEL. What about STM?