Ili9341 and XPT2046 testprogram!

Tips, Tricks and methods for programming, learn ways of making your programming life easier, and share your knowledge with others.

Moderators: Benj, Mods

Post Reply
jgu1
Posts: 1311
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1107 times
Been thanked: 295 times
Contact:

Ili9341 and XPT2046 testprogram!

Post by jgu1 »

Hi all!

For a while I have working with a project with the above component. To find out of the coordinate value I have created a little testprogram.

The way you create a button is you create a rectangle the size you want. To find out where you have to read the value of the X and Y inside this buttom you can use this program.

To set the limit for X and Y where to use the button I have done my in testprogram, is If : X < 70 AND X > 45 AND Y < 94 AND Y > 35 Then do.
(maybe there is an easyer way to set the limit)

Enable or disable the Macro "Readout" for what you want too see.

I have made this in FC8 because I have to use it in an another project in FC8. I suppose it work in FC9 too :wink: Anyway, I will made a testprogram In FC9 later.
I may say, the Ili9341 together with XPT2046 work exellent, perfect. Thank´s MM team. :D
I have used a STM32F042 in the testproram I am sure other works too. This device is fairly fast with the Ili9341. Notice how I have set the config for the XPT2046 properties.

Hope this could help if you play with this display.

Br Jorgen
Attachments
Touchpanelf24KUp.fcfx
(20.84 KiB) Downloaded 12 times

Post Reply