GLCD with touch

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

Moderator: Benj

gonzogonzo
Posts: 13
Joined: Mon Aug 11, 2014 3:57 pm
Has thanked: 5 times
Been thanked: 1 time
Contact:

GLCD with touch

Postby gonzogonzo » Mon Jul 09, 2018 10:23 am

Hello,

I would like to simulate a GLCD with touch but I do not understand how simulating touch; i have download example "GLCD4.3touch" and use and simulation GLCD is ok but touch is for for me a "black hole".
There is someone can help me with refering to this example?

Thank in advance and sorry for my poor english.

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 7539
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2055 times
Been thanked: 2961 times
Contact:

Re: GLCD with touch

Postby medelec35 » Mon Jul 09, 2018 11:28 am

Hi gonzogonzo,
Can you post a link to the example please.
It saves people searching for it.

Martin
If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

Martin

gonzogonzo
Posts: 13
Joined: Mon Aug 11, 2014 3:57 pm
Has thanked: 5 times
Been thanked: 1 time
Contact:

Re: GLCD with touch

Postby gonzogonzo » Mon Jul 09, 2018 11:58 am


User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 7539
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2055 times
Been thanked: 2961 times
Contact:

Re: GLCD with touch

Postby medelec35 » Tue Jul 10, 2018 3:51 pm

I see what you mean,
I could not get the touch side to simulate either.
These users thanked the author medelec35 for the post:
gonzogonzo (Tue Jul 10, 2018 4:06 pm)
Rating: 5.88%
 
If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

Martin

gonzogonzo
Posts: 13
Joined: Mon Aug 11, 2014 3:57 pm
Has thanked: 5 times
Been thanked: 1 time
Contact:

Re: GLCD with touch

Postby gonzogonzo » Tue Jul 10, 2018 4:08 pm

medelec35 wrote:I see what you mean,
I could not get the touch side to simulate either.

Thanks medelec35,
i am working on prototype...

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 7539
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2055 times
Been thanked: 2961 times
Contact:

Re: GLCD with touch

Postby medelec35 » Tue Jul 10, 2018 4:11 pm

Was it that specific gLCD or will any be ok so long as touch part works?
I have found an example with a different controller that works and can upload it if that will help?
Unless it's specifically XPT2046 then I have not got a working example that will simulate touch.
These users thanked the author medelec35 for the post:
gonzogonzo (Sun Jul 15, 2018 9:34 am)
Rating: 5.88%
 
If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

Martin

User avatar
Benj
Matrix Staff
Posts: 12915
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 3686 times
Been thanked: 3537 times
Contact:

Re: GLCD with touch

Postby Benj » Thu Jul 12, 2018 2:53 pm

Hello,

The touch sensor IC basically allows you to overlay the display with a resistive film. When this film is touched you get a resistance on the X and Y axis that the touch controller IC can read to determine the position of the touch.

It looks like the XPT2046 component does not simulate but should work fine on the real hardware.
These users thanked the author Benj for the post:
gonzogonzo (Sun Jul 15, 2018 9:34 am)
Rating: 5.88%
 

gonzogonzo
Posts: 13
Joined: Mon Aug 11, 2014 3:57 pm
Has thanked: 5 times
Been thanked: 1 time
Contact:

Re: GLCD with touch

Postby gonzogonzo » Sun Jul 15, 2018 9:34 am

Hi medelec35 and Benj,

sorry for my reply delay but i am not at home;
my hardware use gLCD Ili9341 320X240 and touch XPT2046 and now i have made a prototype (with PIC) that work very well with software write in Flowcode V7 (only a little problem with touch solved with a sorte of antidebounce).
Problem is that there is not touch simulation and this delay development software; but all is working...
If You can explain like i can made simulation of touch would be great!

Thank again