TFT ili9340

Hello,

I bought a 2.4" tft arduino UNO shield from china,

I have the following pins on the shield:

A0 --> LCD_RD;
A1 --> LCD_WR;
A2 --> LCD_RS;
A3 --> LCD_CS;
A4 --> LCD_RD;

LCD_D0 (D8), LCD_D1 (D9), LCD_D2 (D2), LCD_D3 (D3), LCD_D4 (D4), LCD_D5 (D5), LCD_D6 (D6), LCD_D7 (D7)

SD_SCK (D13), SD_DO (D12) , SD_DI (D11), SD_SS (D10)

Most examples on the net define these pins:

#define TFT_SCLK 13
#define TFT_MISO 12
#define TFT_MOSI 11
#define TFT_CS 3
#define TFT_DC 6
#define TFT_RST 4

Which is which?

regards

Post a link to the actual item that you bought.

It looks very much like regular red Mcufriend shield.
What gave you the idea that it might have an ILI9340?
What makes you think it would use SPI for the controller if it has a parallel data bus printed on the pcb?

David.

It's this one":
http://www.aliexpress.com/item/For-Arduino-UNO-2-4-inch-TFT-touch-screen-supporting-For-UNO-R3/1728876003.html

Regards

Does your item match the photo in your link?
i.e. MCUFRIEND.COM
i.e. 2.4" tft for Arduino Uno (9335)

This implies that it uses an ILI9335 controller.
What does it say if you try my library MCUFRIEND_kbv Library for Uno 2.4, 2.8, 3.5, 3.6, 3.95 inch mcufriend Shields - Displays - Arduino Forum

Run the LCD_ID_readreg.ino sketch to the Serial Terminal.

David.

Thnx, got it working now !

regards

No one has made an official report about the ILI9335.

If you have an ILI9335 or an ILI9340 or any "Untested" controller :

I would be very grateful if you ran the graphictest_kbv.ino and reported any problems.
(use tft.begin(0x9341) if you have a ILI9340)

David.