error uploading sketch 2.5" lcd touch screen.

http://www.ebay.co.uk/itm/310712018787?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649

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.
//
#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()
{
Serial.begin(38400);
myGLCD.InitLCD();
myGLCD.clrScr();
myTouch.InitTouch();
myTouch.setPrecision(PREC_MEDIUM);
// 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
//myGLCD.Set_character_spacing(1);
}
void loop()
{
long x, y;

while (myTouch.dataAvailable() == true)
{
myTouch.read();
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(x);
Serial.print(",");
Serial.print(y);
Serial.print(" ");
Serial.print(int(479-(y
1.5)));
Serial.print(",");
Serial.println(int(319-(x/1.5)));
}}}

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.

http://www.henningkarlsen.com/electronics/library.php?id=55

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.