I've been given one of these shields (https://www.jaycar.com.au/medias/sys_master/images/9288040972318/XC4630-dataSheetMain.pdf) to use for a work prototype project and its pin set up is killing me.
Im also using an Ardunio Mega 2560 R3 board.
I've down loaded Adafruit_gfx libraries and edited pins in some of them with success, as well as changing the identifier code (ID=0x9481) in MCUFRIEND libraries to ID=0x8230 to make them work.
I also ran some diagnositic programs to get some of the pin read outs.
so Touch pins are XP=8 YP=A3 XM=A2 and YM=9
The shield connects to the following pins
No Lable--------A5 No Lable--------0 ->(Rx0)
LCD_RST--------A4 No Lable--------1 <- (Tx0)
LCD_CS --------A3 LCD_D2 -------2
LCD_RS --------A2 LCD_D3 -------3
LCD_WR -------A1 LCD_D4 -------4
LCD_RD --------A0 LCD_D5 -------5
LCD_D6 -------6
No Lable--------Vin LCD_D7 -------2
GND-------------GND
No Lable--------GND LCD_D0--------8
5V---------------5V LCD_D1--------9
3.3V-------------3.3V SD_SS---------10
No Lable---------RESET SD_DI---------11
SD_DO---------12
SD_SCK--------13
I need to use the the UTFT libraries (Rinky-Dink Electronics)
ive read the pdfs and this is what i edited
original: URTouch myTouch(6,5,4,3,2);
my edit: URTouch myTouch(13,A3,1,0,2);
I'm guessing on the 1,0 and 2 because I cant find any data sheets for the data_in, Data_out and pen interrupt pin (as I'm using a mega board). and it must be incorrect because I'm getting blank screen.
Current all the screen does after upload is flicker
Ive included my code as a .txt file
Touchbutton.txt (6.88 KB)