How to print X,Y,Z values in serial monitor


I am using TFT 320QVT_9341 LCD display and arduino Due development board. I used UTFT library and URTouch library. Display and Touch working well. I want to know how to print X,Y,Z coordinates in serial monitor. I know i can get x and y coordinates and print. Is it able to get pressure(z) value and print on serial monitor. Also I know that can be done using Adafrut Library. Can we get x,y and also z values using this library, Please give me a solution.



Is there any example code for the libraries ?

You have the source of the libraries so can check which functions are available.

Please give me a solution.

Please don't cross-post. Duplicate deleted