david_prentice:
Please run the Calibration sketch.
Copy-Paste from the Serial Terminal to your message and post it here.
When calibrated, you should get full use of the screen. Be realistic. Design your sketch to use buttons that the user can see and fit a finger on. No one carries a stylus in their pocket.
It is unwise to place a tiny button at the edge of the screen.
A simple test is to run the TouchShield example (with your calibration).
You will see how well the coloured spot follows your stylus.
David.
i had to enter a negative number for x to get to the top of the scree "-20" y seems to be fine i think. heres a full readout of the serial after calibration with stylus
pullup with corresponding pin
wction
Testing : (A1, D7) = 21
Testing : (A2, D6) = 32
Diagnosing as:-
XM,XP: (A1, D7) = 21
YP,YM: (A2, D6) = 32
ID = 0x6814
cx=126 cy=82 cz=614 LEFT, TOP, Pressure
cx=146 cy=507 cz=426 LEFT, MIDH, Pressure
cx=136 cy=910 cz=207 LEFT, BOT, Pressure
cx=517 cy=87 cz=625 MIDW, TOP, Pressure
cx=515 cy=912 cz=329 MIDW, BOT, Pressure
cx=888 cy=89 cz=691 RT, TOP, Pressure
cx=890 cy=498 cz=562 RT, MIDH, Pressure
cx=892 cy=914 cz=417 RT, BOT, Pressure
MCUFRIEND_kbv ID=0x6814 320 x 480
const int XP=7,XM=A1,YP=A2,YM=6; //320x480 ID=0x6814
const int TS_LEFT=110,TS_RT=915,TS_TOP=68,TS_BOT=929;
PORTRAIT CALIBRATION 320 x 480
x = map(p.x, LEFT=110, RT=915, 0, 320)
y = map(p.y, TOP=68, BOT=929, 0, 480)
Touch Pin Wiring XP=7 XM=A1 YP=A2 YM=6
LANDSCAPE CALIBRATION 480 x 320
x = map(p.y, LEFT=68, RT=929, 0, 480)
y = map(p.x, TOP=915, BOT=110, 0, 320)