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
XPT2046 FC8
Moderator: Benj
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: XPT2046 FC8
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?
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?
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
Re: XPT2046 FC8
Yes could be Ben, but work fine..... You guy´s make a good job
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
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
Jorgen

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

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

Jorgen
- Attachments
-
- Touchpanel.fcfx
- (15.41 KiB) Downloaded 180 times