Références :
2.4 Inch TFT LCD Touch Screen Module 240 x 320 resolution Spfd5408 controller :
******** Video avec lien vers la librairie à utiliser **********
https://youtu.be/Zyl2Kak7qrE
************
LCD panel takes eight I/O pins ( 8-bit parallel data bus ) LCD_D0 to LCD_D7.
SD card needs another four — select, DI data in, DO data out and SCK data clock.
But the LCD panel needs another five pins (RST,CS,RS,WR,RD) to control the eight-bit data bus, taking up five of the six analog I/O pins. So in the end, there’s just one analog I/O and two digital I/O pins left for other uses in your project
*********
Pour les images :
It takes any 320-pixel wide 24-bit BMP image located in the root of the MicroSD card, loads it up & displays it.
Save any bitmap image BMP from your PC on to a Micro SD card using card reader.Make sure that the .bmp FILE SIZE does not exceed 250KB.You can make use of PC application like IRFANVIEW to resize the image & save as .bmp file of required size.If the file size is large “File not found” error will be the response.
****
Principe du « ToucScreen » :
On a donc 4 entrées/sorties X+, X-, Y+ et Y- et une valeur de pression Z
A tester :
http://forum.arduino.cc/index.php?topic=314613.0
https://alselectro.wordpress.com/2014/11/28/touch-screen-tft-shield-for-arduino-uno/
http://apcmag.com/arduino-project-make-digital-photo-frame.htm/
http://artofcircuits.com/product/2-4-inch-tft-touch-lcd-module-lcd-screen-module-for-arduino
http://hackaday.io/project/3734-getting-the-tft-to-work
http://www.smokeandwires.co.nz/blog/a-2-4-tft-touchscreen-shield-for-arduino/
http://letsmakerobots.com/content/how-use-24inch-tft-lcd-spfd5408-with-arduino-mega-2560
http://misc.ws/2013/11/08/touch-screen-shield-for-arduino-uno/
Great job ! I bought a display from banggood , came with the other chip, I believe it is a ILI9341. Your edited library make it work nicely !
Still, the colors are not right, I do not manage to get them right, almost no red, Any idea ?
Thank
Tibia
Hi, Thank’s, you can try to change the hex values en the files :
// Color definitions
#define ILI9341_BLACK 0x0000 /* 0, 0, 0 */
#define ILI9341_NAVY 0x000F /* 0, 0, 128 */
#define ILI9341_DARKGREEN 0x03E0 /* 0, 128, 0 */
#define ILI9341_DARKCYAN 0x03EF /* 0, 128, 128 */
#define ILI9341_MAROON 0x7800 /* 128, 0, 0 */
#define ILI9341_PURPLE 0x780F /* 128, 0, 128 */
#define ILI9341_OLIVE 0x7BE0 /* 128, 128, 0 */
#define ILI9341_LIGHTGREY 0xC618 /* 192, 192, 192 */
#define ILI9341_DARKGREY 0x7BEF /* 128, 128, 128 */
#define ILI9341_BLUE 0x001F /* 0, 0, 255 */
#define ILI9341_GREEN 0x07E0 /* 0, 255, 0 */
#define ILI9341_CYAN 0x07FF /* 0, 255, 255 */
#define ILI9341_RED 0xF800 /* 255, 0, 0 */
#define ILI9341_MAGENTA 0xF81F /* 255, 0, 255 */
#define ILI9341_YELLOW 0xFFE0 /* 255, 255, 0 */
#define ILI9341_WHITE 0xFFFF /* 255, 255, 255 */
#define ILI9341_ORANGE 0xFD20 /* 255, 165, 0 */
#define ILI9341_GREENYELLOW 0xAFE5 /* 173, 255, 47 */
#define ILI9341_PINK 0xF81F
Hi,
Thanks for the library, ONLY than works with my china TFT 2.4. Graphics OK, but the touch doesn’t works, i touch in any place and the point is showed in another place.
What I do ?
Help please, I think a lot of people with some trouble
Thanks
Joao
Hi Joao,
Did you try the old ‘original’ Touch lib ?
Hi, great job!
unfortunately I cannot use the SD card neither with Leonardo, nor with MEGA256. Do you have any Idea how to get the sd card running which is included on the TFT?
Thank’s ! I have tried only with an UNO. I will check, next month, if there is some adaptation for Leonardo and MEGA.
how to connect to raspbery pi b gpio