XPT2046 FC8

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

XPT2046 FC8

Post 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
Attachments
Touchpanel.fcfx
(12.86 KiB) Downloaded 144 times

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: XPT2046 FC8

Post by jgu1 »

Solved :D

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

Jorgen

User avatar
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

Post 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?

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: XPT2046 FC8

Post 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
Attachments
Touchpanel.fcfx
(15.41 KiB) Downloaded 156 times

Post Reply