SPFD5408 Arduino Library for 2.4 TFT

This library is the Adafruit TFT Libraries changed to works in TFT 2.4 shields with the SPFD5408 controller.

Similar projects worth following
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:

Enjoy this project?



Kingdom wrote 08/19/2019 at 19:35 point

Works only for ATMEL. What about STM?

  Are you sure? yes | no

Rick Cavallaro wrote 10/24/2017 at 05:33 point

I'm using this library with success, but I'm not able to find functions like bufferEmpty() that is found in the Adafruit_STMPE610 library.  

Without this function I end up with multiple touches each time.  Any tips would be greatly appreciated.  Thanks!

  Are you sure? yes | no

Rick Cavallaro wrote 10/25/2017 at 04:46 point

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.

  Are you sure? yes | no

bernard.jacob.liege wrote 08/24/2017 at 13:03 point

Hi! I see different effects with the shield but it's not possible to use the touch and I have to pu each call to on waitOneTouch in comentary.

Have idea ? thanks

  Are you sure? yes | no

naveentyagi1972 wrote 08/16/2017 at 14:19 point

Th zip file downloaded is corrupt as per winzip. Please check

  Are you sure? yes | no

dipikasamantasinghar123 wrote 01/09/2017 at 10:01 point

I downloaded the required library but getting only white screen. can you please tell me what's the reason behind it?

  Are you sure? yes | no

cdsc wrote 04/22/2016 at 04:42 point

Same as jim, getting 1/2 the screen

  Are you sure? yes | no

jim.burnham wrote 04/12/2016 at 22:20 point

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

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

any Ideas?

  Are you sure? yes | no

Abdulrahman wrote 09/06/2015 at 16:29 point

If this library works %100

Then, my display is broken!!

It's all white .. have been looking for days. I'm using uno

In my opinion this library is the best set I downloaded until today.

  Are you sure? yes | no

bernard.jacob.liege wrote 08/24/2017 at 13:07 point

Take care with electronical contact. In first time, I have just one blank scrren and I pushed more the pins in UNO card.


  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates