2.8 inch 320x240 tftlcd from mcufriend

I got new tft

I had similar 3.5 ( 480 x 320) inch from the same company I managed to run with UFTF and Utouch library

I guess I need to change the driver and it should run but I cannot find which one

It has the XPT2046 chip but it is I guess for the touch option.

I found some info that it could be ILI9331 driver but there is no such in the Arduino IDE

the guy selling in on ebay says that it is 12864 LCD interface but when I load that LCD12864.h it says that it cannot compile.

Did anybody got it working on mega 2560 board ?

Please post a link to the Ebay sale. Please compare the photos on the link with the actual item on your desk. Are they accurate?

We need to see a photo of the pcb side of the shield e.g. how many pins, what printed legends, what colour the pcb is, ...

David.

here is the picture

it is very similar to 3.5 inch I got working with Utouch and UFTF library the only difference it is 2.8 inch and

it has reset pin connected

I assume the right drive should do the job but nothing seems to be working

Thanks for the photo. It has 5 Resistor packs RP1-RP5. This would normally mean an 8080-8 interface instead of the regular 7 Resistor Pack 8080-16 interface.

However, the microSD seems to connect to D50-D53 without going through a Resistor Pack.
And the XPT2046 does not use Resistor Packs either.
So your TFT might be 8080-8 or 8080-16. You can verify which Resistor Packs connect to D22-D37 with a multimeter. If D30-D37 are not connected, this will rule out the 16-bit interface.

2.8 inch suggests that it is a 240x320 controller.

UTFT supports several 240x320 controllers. Some with 8080-8 and some with 8080-16 interface.
Your Screen is write-only. It is not possible to read the controller ID. You just need to use guesswork.

MCUFRIEND_kbv can control many 240x320 controllers as USE_SPECIAL with USE_MEGA_8BIT_SHIELD / USE_MEGA_16BIT_SHIELD

A link to the Ebay / AliExpress sale item might give some more clues.

David.

After loading all the libraries I got it finally working with ITDB32S driver and UTFT and UTouch libaray

See picture, would you know what the icons telephone, mail do, I guess I can map the somehow for the touch screen ?

the funny thing is that I could never get the MCUFRIEND_kbv working

Oh, don't you just love UTFT gobbledygook names?

#define ITDB32S			2	// SSD1289  (16bit)

Surely it is far easier to just say SSD1289 !!

I am surprised to see this controller. It was common 5 years ago. Perhaps some Mobile Phone screens have just come onto the surplus market.

Yes, you would need to go through lots of hoops to run your screen on MCUFRIEND_kbv:

#define SUPPORT_1289 
#define USE_SPECIAL
#define USE_MEGA_16BIT_SHIELD

I do support a lot of controllers and a lot of targets. Most shields plug into the Arduino and work out of the box. The "unusual" ones require editing some Slash characters.

Most microSD on the Red Mcufriend mega2560 shields will not work because the Resistor Pack is the wrong value. In theory, microSD are not 3.3V input tolerant. In practice, the microSD work ok with 5V SPI. They must always have 3.3V VCC.

Keep your fingers crossed. URTouch should work (the XPT2046 is 5V tolerant). The microSD should work. You have already shown the TFT works.

David.

they seem to be good displays and I see a lot of people sell on ebay from China .

they guy from ebay sent me some info which was totally incorrect, he does not know what he sells.

they do not print any part number on it to cross link with proper driver.

and they do not have web page in English

we need some web page with the displays cross linked with right driver.

I changed the line from :

UTFT myGLCD(ITDB32S,38,39,40,41);

to:

UTFT myGLCD(SSD1289,38,39,40,41);

it is working too, both work

UTFT has an array of "display_model"s that contains controller, height, width, interface details

e.g. ILI9341_16 is a 240x320 Ilitek ILI9341 with 16-bit parallel interface.
e.g. ILI9341_S5P is a 240x320 Ilitek ILI9341 with 8-bit Serial interface.
e.g. SSD1289 is a 240x320 Solomon SSD1289 with 16-bit parallel interface.

Mr Karlsen likes to work with respected Display Manufacturers like Itead. So he gives an alternative model name to reflect the Manufacturer's Product Retail model e.g. ITDB32S

ITDB32S is exactly the same as SSD1289. But only an Itead employee would know what components are used in their products. It happens to be the 3rd element in the array (with index = 2)

Mcufriend and other Chinese manufacturers seldom worry about model numbers or accurate legends on their pcb. The controllers vary from batch to batch.
It does not matter with the Uno shields because I can read the controller ID.

It would be simple for Mcufriend to mark their mega2560 pcbs with a paper label or rubber stamp.
I bet your shield did not even have anything written on the plastic envelope.

You were very lucky. I would have tried Ilitek, Himax, Renesas, Raydium, ... controllers before I tried SSD1289.

David.