MCUFRIEND_kbv Library for Uno 2.4, 2.8, 3.5, 3.6, 3.95 inch mcufriend Shields

david_prentice:
Please can you explain. It is useful to number each step as you go e.g.

  1. Plug shield into Arduino Uno.
  2. Run TouchScreen_Calibr_native.ino
  3. Open the Serial Terminal (9600)
  4. It should diagnose the Touch Pins to Serial.
  5. The TFT should prompt for "start"
  6. The TFT should show several cross-hairs. One will be highlighted.
  7. [Press] the stylus on the highlighted cross-hair until [Release]
  8. the highlight moves to the next cross-hair
  9. rinse and repeat for all cross-hairs.
  10. the TFT shows a brief report.
  11. the Serial Terminal shows a full report.
  12. you only need to copy-paste two lines from the Serial Terminal.

e.g.

const int XP=7,XM=A1,YP=A2,YM=6; //240x320 ID=0x9797

const int TS_LEFT=893,TS_RT=182,TS_TOP=858,TS_BOT=210;




13. it is wise to save the calibrations in a file if you have several different screens.
14. if you have a problem, copy-paste the whole Serial Terminal to a message on the Forum.

I would dearly love to get feedback.
Which step is difficult?
Do the cross-hairs show?
Do you copy-paste from Serial?

Note that you can't diagnose Touch pins with an ARM or ESP
But you can still calibrate if you edit the sketch for your manually diagnosed Touch pins (i.e. with a DMM)

David.

I did the steps you mentioned.
The cross-hairs is OK.
I press al cross-hairs one by one. ( i can not see any highlited cross-hair)
I press them one by one starting from the top at the left.
Then i upload the touch_shield_new.ino to test.
Nothing working.
I can even press the EXIT on the first screen.
The output from serial monitor:

const int XP=7,XM=A1,YP=A2,YM=6; //240x320 ID=0x9340
const int TS_LEFT=584,TS_RT=482,TS_TOP=685,TS_BOT=665;

.