above is the model of touch screen i have, I am running the arduino uno r3
on uploading the sketch provided i am getting the below messages.
Touch:18: error: ‘UTFT’ does not name a type
Touch:19: error: ‘UTouch’ does not name a type
Touch.ino: In function ‘void setup()’:
Touch:25: error: ‘myGLCD’ was not declared in this scope
Touch:27: error: ‘myTouch’ was not declared in this scope
Touch:28: error: ‘PREC_MEDIUM’ was not declared in this scope
Touch.ino: In function ‘void loop()’:
Touch:41: error: ‘myTouch’ was not declared in this scope
Touch:47: error: ‘myGLCD’ was not declared in this scope
the sketch provided is.
// UTouch_QuickDraw (C)2010-2012 Henning Karlsen
// Modified for CTE Shield for Arduino MEGA 2560 and CTE LCD Module with Font IC
// web: http://stores.shop.ebay.com/coldtears-electronics-store
// web: http://www.henningkarlsen.com/electronics
// This program is a quick demo of how to use the library.
// This program requires the CTE modified UTFT library.
// It is assumed that the display module is connected to an
// appropriate shield or that you know how to change the pin
// numbers in the setup.
UTFT myGLCD(CTE35,38,39,40,41); // Remember to change the model parameter to suit your display module!
unsigned long k=0;
myGLCD.setColor(255, 222, 111); //Set font color
myGLCD.setBackColor(0, 0, 0); //Set background color
long x, y;
while (myTouch.dataAvailable() == true)
x = myTouch.getX();
y = myTouch.getY();
if ((x!=-1) and (y!=-1))
What am i missing?
Thanks in advance.