mcufriend 2.4" TFT pinout. Where are the touchscreen signal pins?

Hi.

Does anyone know where the touch screen pins are?

arduino-tft.jpg

The most common arrangement is A1, A2, D7, D6. i.e. LCD_WR, LCD_RS, LCD_D7, LCD_D6 as marked in your photo.

The safest way to identify them is to run the diagnose_TouchPins.ino from the examples.

You can run the TouchScreen_Calibr_native.ino sketch. But you probably will need to adjust the Touch sensitivity in the ISPRESSED() function. e.g. tp.z > 200

If you have difficulty in reading the how_to instructions or finding examples, please advise me how to improve them. I rely on feedback from users.

David.

Thank you. Markings are a bit confusing. So those displays are actually the SPI driven. Do you have the actual pinout (ie what pin what actually is)? Is it the same as on this adafruit schematics?

|500x373

No. You posted a photo of a Red 2.4" Mcufriend Uno shield in #0. (with parallel data bus) Install/Upgrade the MCUFRIEND_kbv library via the Library Manager.

Does your photo accurately represent the item on your desk?

Your "schematic" in #2 is for an Adafruit product. (which happens to use SPI for TFT, SD_card, and Touch Controller)

The Adafruit design has plenty of spare pins for your "external electronics", sensors etc The Mcufriend design has got TFT, SD_card, dumb TouchScreen. The only spare pin left on a Uno is A5 which you can use for Analog or Digital.

If you don't use the microSD Card, you can use those pins for other purposes.

David.

Yes. I still do not understand the pinout. Something should select the role of the LCD_Dx pins if they are multiplexed with the Touch interface.

The library is not the issue as I use it in my own design - it is the STM32 based board. Just do not know the functions of the pins and I am stugling to find it on the internet.

PS The picture represents the item on my desk.

PS2 I have run your example on the arduino and it displays properly.

My library works on STM32 NUCLEO boards. The Shield plugs into the Nucleo headers.

You need a SPECIAL if you have different wiring. Run the LCD_ID_readreg sketch with your wiring. Post the defines and which STM32. I will write a SPECIAL for you.

Make sure that you have at least two Analog pins for the X, Y.

I am happy to explain how a Touchscreen works. But you need to get the TFT running on the STM32 first.

David.

Thank you very much. I design the PCB for my device and just need to know the pinout. Without it I cant go any futher :).

Eventually I have found it. Hopefully it is the correct one. |348x500

franekz: Hi.

Does anyone know where the touch screen pins are?

david_prentice: The most common arrangement is A1, A2, D7, D6. i.e. LCD_WR, LCD_RS, LCD_D7, LCD_D6 as marked in your photo.

The safest way to identify them is to run the diagnose_TouchPins.ino from the examples.

You can run the TouchScreen_Calibr_native.ino sketch. But you probably will need to adjust the Touch sensitivity in the ISPRESSED() function. e.g. tp.z > 200

If you have difficulty in reading the how_to instructions or finding examples, please advise me how to improve them. I rely on feedback from users.

David.

how can I paint on 2.4" tft with ili9320 style controller

i have a 2.4" tft lcd shield with ili9320 controller. I used mcufriend_kbv library for graphic test but there is no example for paint or to draw on tft.How i can i paint on it

Install /Upgrade library with the Library Manager. Run all the examples.

Diagnose your Touchpins and Calibrate the Touch panel.

David.

Hi David.

Where can I find your Library?

Kurt

Sketches-> include_library->manage_libraries gets you to the IDE Library Manager