Hi,
I recently bought a new XC4630 from Jaycar. This is no longer packaged Duinotech and the sparse information on configuring the excellent MCUFRIEND_kbv library does not work with the new board. I could not use any of the tools supplied with the library to determine a supported configuration but manually stepping through the defines did work.
To cut a long story short, here are the results from the configuration tool:
// Results from Touch_Screen_Calib_native.ino
// MCUFRIEND define SUPPORT chosen appropriately.
//The first set is from the OLD Jaycar boards
// The ID corresponds to the documentation on Jaycar product page
// for configuration of the board.
*** COPY-PASTE from Serial Terminal:
const int XP=8,XM=A2,YP=A3,YM=9; //240x320 ID=0x8230
const int TS_LEFT=908,TS_RT=111,TS_TOP=69,TS_BOT=883;
PORTRAIT CALIBRATION 240 x 320
x = map(p.x, LEFT=908, RT=111, 0, 240)
y = map(p.y, TOP=69, BOT=883, 0, 320)
LANDSCAPE CALIBRATION 320 x 240
x = map(p.y, LEFT=69, RT=883, 0, 320)
y = map(p.x, TOP=111, BOT=908, 0, 240
// the second set is from the NEW Jaycar Board (Duratech not Duinotech)
// this one's ID is not supported directly, however it works with SUPPORT_8347D
*** COPY-PASTE from Serial Terminal:
const int XP=8,XM=A2,YP=A3,YM=9; //240x320 ID=0x7575
const int TS_LEFT=923,TS_RT=91,TS_TOP=66,TS_BOT=901;
PORTRAIT CALIBRATION 240 x 320
x = map(p.x, LEFT=923, RT=91, 0, 240)
y = map(p.y, TOP=66, BOT=901, 0, 320)
LANDSCAPE CALIBRATION 320 x 240
x = map(p.y, LEFT=66, RT=901, 0, 320)
y = map(p.x, TOP=91, BOT=923, 0, 240)
I hope this helps someone to get started with this product. Note, I would repeat the actual calibration yourself but choosing the correct (or at least a compatible) configuration in MCUFRIEND_kbv.cpp is key to getting any display, other than the backlight.