Can I get URTouch to work on MCUFRIEND sheild?

Hi there!

I have a 2.8" TFT touch screen (Velleman VMA412) - the few examples that use the touch panel call up TouchScreen.h library.

I'm curious if it is possible to use the URTouch library with my screen?

I'm stuck on figuring out how the connections work - URTouch object has arguments to find pins like so... URTouch(TCLK, TCS, TDIN, TDOUT, IRQ);

But the documents that came with the hardware give no indication of what those pins would be on the board. The pinout list covers the LCD parallels, the SD card and the power/gnd set.

TouchScreen.h in the examples for my product defines XP,XM,YP,YM only.

Is there a way to know what pins would function as per the above? ... or is my shield not capable of playing with URTouch?

Thank you for any help!

Jason.

Seriously. Please post a link to the actual screen that you have bought.
Ok, I could Google your model number. And it brings up a 2.8 inch Mcufriend Shield. (white pcb instead of the normal blue 2.8 pcb)

No, you can't use URTouch.h because your shield does not have XPT2046 Touch Controller chip.

I recommend that you just install MCUFRIEND_kbv library and run the examples. Other libraries are available.

David.

Thank you for helping!

Please may I ask - the MCUFRIEND has some great examples in there... but then there is also a set of demos using UTFTGLUE ...

Is there any advantage to trying to work with UTFTGLUE instead of just #including MCUFRIEND / Adafruit GFX etc?

Thank you! I very much appreciate your time.

J

I wrote UTFTGLUE just so that I could run legacy UTFT programs on the MCUFRIEND hardware.
There are too many differences in the individual graphics methods to edit "by hand".

However you would never want to write a new project with UTFTGLUE. I don't find the UTFT syntax intuitive.
Adafruit_GFX is not only intuitive but is adopted by most Arduino code.

YMMV.

David.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.