Hi
I am trying to calibrate my 2.4" touch screen, using the in build UTouch_Calibration sketch provided
I am using an Arduino Uno R3
Touch screen is iteadstudio http://imall.iteadstudio.com/development-platform/im120417012.html
The program uploads and displays correctly but when trying to touch the screen to continue there is no response,
I am not sure if the initialization numbers are correct.
here is the code
#include <UTFT.h>
#include <UTouch.h>
// Define the orientation of the touch screen. Further
// information can be found in the instructions.
#define TOUCH_ORIENTATION PORTRAIT
// Declare which fonts we will be using
extern uint8_t SmallFont[];
// Uncomment the next two lines for the Arduino 2009/UNO
UTFT myGLCD(ITDB24E_8,19,18,17,16); // Remember to change the model parameter to suit your display module!
UTouch myTouch(15,8,14,9,10);
// Uncomment the next two lines for the Arduino Mega
//UTFT myGLCD(ITDB32S,38,39,40,41); // Remember to change the model parameter to suit your display module!
//UTouch myTouch(6,5,4,3,2);
// ************************************
// DO NOT EDIT ANYTHING BELOW THIS LINE
// ************************************
uint32_t cx, cy;
uint32_t rx[10], ry[10];
uint32_t clx, crx, cty, cby;
float px, py;
int dispx, dispy, text_y_center;
uint32_t calx, caly, cals;
char buf[13];
void setup()
{
myGLCD.InitLCD(); //do i need to place PORTRAIT in here?
myGLCD.clrScr();
myGLCD.setFont(SmallFont);
myTouch.InitTouch(TOUCH_ORIENTATION);
myTouch.setPrecision(PREC_LOW);
dispx=myGLCD.getDisplayXSize();
dispy=myGLCD.getDisplayYSize();
text_y_center=(dispy/2)-6;
}
/////////////////////////
//REMOVED REST OF CODE FOR POST
Thanks
J