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
I made available it in my GitHub .
Please download it in:https://github.com/JoaoLopesF/SPFD5408