Page 1 of 1

XPT2046 FC8

Posted: Wed Jan 27, 2021 12:57 pm
by jgu1
Hi!

I am playing with an ILI9341 display with touch. I use the XPT2046 SPI. Unfortunately I have no luck, nothing happen when I touch the display. My display write 639 and 479 X and Y all time. I see the are a pin availbe on touch SPI: T_IRQ, should this not connectes?

Can anyone see what I have done wrong in my testprogram, please and have anyone some experience with the touch?

Thank,´in advance

Jorgen

Re: XPT2046 FC8

Posted: Wed Jan 27, 2021 5:43 pm
by jgu1
Solved :D

Switch the SPI from Channel to sofware and it work. SO NICE :wink:

Jorgen

Re: XPT2046 FC8

Posted: Thu Jan 28, 2021 5:49 pm
by Benj
Hi Jorgen,

Thanks for letting us know. Strange the hardware SPI wasn't working well for you. The SPI mode was setup wrong before so maybe this has been fixed via a recent component update?

Re: XPT2046 FC8

Posted: Thu Jan 28, 2021 8:01 pm
by jgu1
Yes could be Ben, but work fine..... You guy´s make a good job :lol:

I already made some test. I made it in FC8 because I want to implement in an preveius project. Look forward to test in FC9 :wink:

MAybe you have time to look in my testprogram. I have made a buttom in the display and when I press inside the buttom I want it to do something. As you see, I said:

If: X > 56 AND X < 100 AND Y < 90 AND Y > 50 then do. IT is working nice, but is this the only way or is there a more simpler way to do it? I see sometime in other projects they calibrate the display, have this something to do with a system for use as above?

Hope you understand what I mean :wink:

Jorgen