error uploading sketch 2.5" lcd touch screen.

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:
// web:
// 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.
#include “SPI.h”
#include <UTFT.h>
#include <UTouch.h>
UTFT myGLCD(CTE35,38,39,40,41); // Remember to change the model parameter to suit your display module!
UTouch myTouch(6,5,4,3,2);
unsigned long k=0;
void setup()
// myGLCD.SPI_Flash_init(45);
// SPI.begin();
// SPI.setClockDivider(SPI_CLOCK_DIV2);
myGLCD.setColor(255, 222, 111); //Set font color
myGLCD.setBackColor(0, 0, 0); //Set background color
void loop()
long x, y;

while (myTouch.dataAvailable() == true)
x = myTouch.getX();
y = myTouch.getY();
if ((x!=-1) and (y!=-1))
{myGLCD.drawPixel (int(479-(y1.5)),int(319-(x/1.5)));
Serial.print(" ");

What am i missing?

Thanks in advance.

Have you downloaded and installed UTFT & UTOUCH libraries in the correct place?

No, all i tried to do was upload the provided sketch, This is the only sketch i have had attached to it.

I have just visited the link provided in the sketch and have come across links for various sketches.

I have just quickly tried to upload a sketch from their but having similar issues.

You will need to download the UTFT.rar file shown on this page and the UTouch.rar file from this page. Then you need to extract the rar files and you will end up with 2 folders called UTFT & UTouch. Follow the manual install instructions here to install the folder in the correct place and then try your sketch again or try one of the examples supplied with the UTFT & UTouch libraries.

Thank you,

I will go through this now.

Hi, I am still having issues regarding getting the screen to work.

any of the examples used seem to tell me that it is too big.

I am using the arduino r3 which as far as i was concerned this would work?

How would i be able to extend the flash memory/eeprom to get the sketches on?
Or has someone made a small sketch that would prove the screen works?

at current all i get is a white screen, yet to see anything from it.

I have ran the above but as i said all sketches say they are too big.