MCUfriend UNO shield on MEGA2560. Touch problem

hello everyone, nice to have a discussion with you guys. i have 3.5" MCUFriend TFT shield for uno. The problem i encountered is the same as this MCUfriend UNO shield on MEGA2560. Touch problem

I've tried to follow step by step from the discussion, starting from modified mcufriend_shield.h with uncommented the “#define USE_SPECIAL” and likewise
modificate mcufriend_special.h and uncommented “#define USE_MEGA_8BIT_PROTOSHIELD”

then do a remapp pin like this
Remap pins:

LCD_D0 22
LCD_D1 23
LCD_D2 24
LCD_D3 25
LCD_D4 26
LCD_D5 27
LCD_D6 28
LCD_D7 29

LCD_RD A2
LCD_WR A3
LCD_RS A4
LCD_CS A5
LCD_RST A6

when I run “graphictest_kbv” this doesn't work perfect. I only see a white screen and when I try to run "button_simple" the button doesn't work and I only see a white screen too. I thought the touch pins were broken, so I unid the changes on mcufriend_special.h and mcufriend_shield.h and rewired with original pins (A0,A1,A2,A3,A4 and 2 to 9).

Then i run again "TouchScreen_Calibr_native". This works! and appears the next message on the screen (Attached image):

"Touch Calibration FAILED

Unable to read the position of the press. This is a
hardware issue and can not be corrected in software.
check XP,XM pins with a multimeter
CheckYP, YM pins with a multimeter
should be about 300ohms"

I try to run "graphictest_kbv" this works perfect not like before. And lastly when I run it with “button_simple” it manages to display it but the button doesn't work

Any ideas how to fix this? I can't get the touch work, with the pins remapped :cry::cry:

this uses A0-A4 for LCD_RD - LCD_RST

The Touch Calibration sketch only tests D2-D9 when detecting pins.
You need to test D22-D29 as well.

It looks as if I already explained this in the thread that you linked.

What I really need to know is what shield have you actually bought.
Does it have a Touch panel ?

Why don't you plug the shield into a Uno as Nature intended ?
Run all the examples. Verify SD card, Touch, Graphics, ... first.

David.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.