I have a 2.4 TFT touch screen, a CTE TFT LCD/SD shield on a MEGA 2560 arduino.
I use Arduino 1.5.7 but I cannot operate my touch screen. Its display is white, no colors, no touch.
Please advise.
We need more information. can you provide us with some links, code and schematics ?
I used the following link in order to download the touchscreenLIB into my Arduino library.
This is the code I used for operating the touch screen.
Thx
#define LCD_RS 38
#define LCD_WR 39
#define LCD_CS 40
#define LCD_REST 41
#define DCLK 6
#define CS 5
#define DIN 4
#define DOUT 3
#define IRQ 2
unsigned int TP_X,TP_Y;
void spistar() //SPI Start
{
digitalWrite(CS,HIGH);
digitalWrite(DCLK,HIGH);
digitalWrite(DIN,HIGH);
digitalWrite(DCLK,HIGH);
}
//**********************************************************
void WriteCharTo7843(unsigned char num) //SPI Write Data
{
unsigned char count=0;
unsigned char temp;
unsigned nop;
temp=num;
digitalWrite(DCLK,LOW);
for(count=0;count<8;count++)
{
if(temp&0x80)
digitalWrite(DIN,HIGH);
else
digitalWrite(DIN,LOW);
temp=temp<<1;
digitalWrite(DCLK,LOW);
nop++;
nop++;
digitalWrite(DCLK,HIGH);
nop++;
nop++;
}
}
//**********************************************************
unsigned int ReadFromCharFrom7843() //SPI Read Data
{
unsigned nop;
unsigned char count=0;
unsigned int Num=0;
for(count=0;count<12;count++)
{
Num<<=1;
digitalWrite(DCLK,HIGH);//DCLK=1; nop();nop();nop();
nop++;
digitalWrite(DCLK,LOW);//DCLK=0; nop();nop();nop();
nop++;
if(digitalRead(DOUT)) Num++;
}
return(Num);
}
void AD7843(void)
{
digitalWrite(CS,LOW);
WriteCharTo7843(0x90);
digitalWrite(DCLK,HIGH);
digitalWrite(DCLK,LOW);
TP_Y=ReadFromCharFrom7843();
WriteCharTo7843(0xD0);
digitalWrite(DCLK,HIGH);
digitalWrite(DCLK,LOW);
TP_X=ReadFromCharFrom7843();
digitalWrite(CS,HIGH);
}
void Lcd_Writ_Bus(char VH,char VL)
{
unsigned char i,temp,data;
data=VH;
for(i=22;i<=29;i++)
{
temp=(data&0x01);
if(temp)
digitalWrite(i,HIGH);
else
digitalWrite(i,LOW);
data=data>>1;
}
data=VL;
for(i=37;i>=30;i--)
{
temp=(data&0x01);
if(temp)
digitalWrite(i,HIGH);
else
digitalWrite(i,LOW);
data=data>>1;
}
digitalWrite(LCD_WR,LOW);
digitalWrite(LCD_WR,HIGH);
}
void Lcd_Write_Com(char VH,char VL)
{
digitalWrite(LCD_RS,LOW);
Lcd_Writ_Bus(VH,VL);
}
void Lcd_Write_Data(char VH,char VL)
{
digitalWrite(LCD_RS,HIGH);
Lcd_Writ_Bus(VH,VL);
}
void Lcd_Write_Com_Data(int com,int dat)
{
Lcd_Write_Com(com>>8,com);
Lcd_Write_Data(dat>>8,dat);
}
void Address_set(unsigned int x1,unsigned int y1,unsigned int x2,unsigned int y2)
{
Lcd_Write_Com_Data(0x0044,(x2<<8)+x1);
Lcd_Write_Com_Data(0x0045,y1);
Lcd_Write_Com_Data(0x0046,y2);
Lcd_Write_Com_Data(0x004e,x1);
Lcd_Write_Com_Data(0x004f,y1);
Lcd_Write_Com(0x00,0x22);
}
void Lcd_Init(void)
{
digitalWrite(LCD_REST,HIGH);
delay(5);
digitalWrite(LCD_REST,LOW);
delay(15);
digitalWrite(LCD_REST,HIGH);
delay(15);
Lcd_Write_Com_Data(0x0000,0x0001); delay(1); //????
Lcd_Write_Com_Data(0x0003,0xA8A4); delay(1); //0xA8A4
Lcd_Write_Com_Data(0x000C,0x0000); delay(1);
Lcd_Write_Com_Data(0x000D,0x080C); delay(1);
Lcd_Write_Com_Data(0x000E,0x2B00); delay(1);
Lcd_Write_Com_Data(0x001E,0x00B7); delay(1);
Lcd_Write_Com_Data(0x0001,0x2B3F); delay(1); //??????320*240 0x6B3F
Lcd_Write_Com_Data(0x0002,0x0600); delay(1);
Lcd_Write_Com_Data(0x0010,0x0000); delay(1);
Lcd_Write_Com_Data(0x0011,0x6070); delay(1); //0x4030 //?????? 16??
Lcd_Write_Com_Data(0x0005,0x0000); delay(1);
Lcd_Write_Com_Data(0x0006,0x0000); delay(1);
Lcd_Write_Com_Data(0x0016,0xEF1C); delay(1);
Lcd_Write_Com_Data(0x0017,0x0003); delay(1);
Lcd_Write_Com_Data(0x0007,0x0233); delay(1); //0x0233
Lcd_Write_Com_Data(0x000B,0x0000); delay(1);
Lcd_Write_Com_Data(0x000F,0x0000); delay(1); //??????
Lcd_Write_Com_Data(0x0041,0x0000); delay(1);
Lcd_Write_Com_Data(0x0042,0x0000); delay(1);
Lcd_Write_Com_Data(0x0048,0x0000); delay(1);
Lcd_Write_Com_Data(0x0049,0x013F); delay(1);
Lcd_Write_Com_Data(0x004A,0x0000); delay(1);
Lcd_Write_Com_Data(0x004B,0x0000); delay(1);
Lcd_Write_Com_Data(0x0044,0xEF00); delay(1);
Lcd_Write_Com_Data(0x0045,0x0000); delay(1);
Lcd_Write_Com_Data(0x0046,0x013F); delay(1);
Lcd_Write_Com_Data(0x0030,0x0707); delay(1);
Lcd_Write_Com_Data(0x0031,0x0204); delay(1);
Lcd_Write_Com_Data(0x0032,0x0204); delay(1);
Lcd_Write_Com_Data(0x0033,0x0502); delay(1);
Lcd_Write_Com_Data(0x0034,0x0507); delay(1);
Lcd_Write_Com_Data(0x0035,0x0204); delay(1);
Lcd_Write_Com_Data(0x0036,0x0204); delay(1);
Lcd_Write_Com_Data(0x0037,0x0502); delay(1);
Lcd_Write_Com_Data(0x003A,0x0302); delay(1);
Lcd_Write_Com_Data(0x003B,0x0302); delay(1);
Lcd_Write_Com_Data(0x0023,0x0000); delay(1);
Lcd_Write_Com_Data(0x0024,0x0000); delay(1);
Lcd_Write_Com_Data(0x0025,0x8000); delay(1);
Lcd_Write_Com_Data(0x004f,0); //???0
Lcd_Write_Com_Data(0x004e,0); //???0
Lcd_Write_Com(0x00,0x22);
}
void Pant(char VH,char VL)
{
int i,j;
digitalWrite(LCD_CS,LOW);
Address_set(0,0,239,319);
for(i=0;i<320;i++)
{
for (j=0;j<240;j++)
{
Lcd_Write_Data(VH,VL);
}
}
digitalWrite(LCD_CS,HIGH);
}
void setup()
{
for(int p=22;p<42;p++)
{
pinMode(p,OUTPUT);
}
for(int p=2; p<7;p++)
pinMode(p,OUTPUT);
pinMode(DOUT,INPUT);
pinMode(IRQ,INPUT);
Lcd_Init();
Pant(0x00,0xff);
}
void loop()
{
Pant(0xff, 0xff);
delay(500);
unsigned char flag;
unsigned char ss[6];
unsigned int lx,ly;
spistar();
while(1)
{
flag = digitalRead(IRQ);
if (flag == 0)
{
digitalWrite(LCD_CS,LOW);
AD7843();
lx=((TP_X-340)*10/144);
//if(lx>237) lx=237;
ly=320-((TP_Y-320)/11);
//if(ly<0) ly=0;
Address_set(lx,ly,lx+2,ly+2);
Lcd_Write_Data(0,255);
Lcd_Write_Data(0,255);
Lcd_Write_Data(0,255);
Lcd_Write_Data(0,255);
Lcd_Write_Data(0,255);
Lcd_Write_Data(0,255);
Lcd_Write_Data(0,255);
Lcd_Write_Data(0,255);
Lcd_Write_Data(0,255);
digitalWrite(LCD_CS,HIGH);
}
}
}
No, i meant links as in where you got your display and libraries.
Also CODE TAGS! Please select all your code and then click the # button above the smiley faces.
Hi,
The link where I bought the Arduino and TFT touch screen is:
http://www.amazon.com/dp/B00J9AAZV6/ref=pe_385040_30332200_TE_item
The link where I got the library is:
http://henningkarlsen.com/electronics/library.php?id=52
// UTFT_Demo_320x240 (C)2012 Henning Karlsen
// web: http://www.henningkarlsen.com/electronics
//
// This program is a demo of how to use most of the functions
// of the library with a supported display modules.
//
// This demo was made for modules with a screen resolution
// of 320x240 pixels.
//
// This program requires the UTFT library.
//
#include <UTFT.h>
// Declare which fonts we will be using
extern uint8_t SmallFont[];
// Uncomment the next line for Arduino 2009/Uno
UTFT myGLCD(ITDB32S,19,18,17,16); // Remember to change the model parameter to suit your display module!
// Uncomment the next line for Arduino Mega
//UTFT myGLCD(ITDB32S,38,39,40,41); // Remember to change the model parameter to suit your display module!
void setup()
{
randomSeed(analogRead(0));
// Setup the LCD
myGLCD.InitLCD();
myGLCD.setFont(SmallFont);
}
void loop()
{
int buf[318];
int x, x2;
int y, y2;
int r;
// Clear the screen and draw the frame
myGLCD.clrScr();
myGLCD.setColor(255, 0, 0);
myGLCD.fillRect(0, 0, 319, 13);
myGLCD.setColor(64, 64, 64);
myGLCD.fillRect(0, 226, 319, 239);
myGLCD.setColor(255, 255, 255);
myGLCD.setBackColor(255, 0, 0);
myGLCD.print("* Universal Color TFT Display Library *", CENTER, 1);
myGLCD.setBackColor(64, 64, 64);
myGLCD.setColor(255,255,0);
myGLCD.print("<http://electronics.henningkarlsen.com>", CENTER, 227);
myGLCD.setColor(0, 0, 255);
myGLCD.drawRect(0, 14, 319, 225);
// Draw crosshairs
myGLCD.setColor(0, 0, 255);
myGLCD.setBackColor(0, 0, 0);
myGLCD.drawLine(159, 15, 159, 224);
myGLCD.drawLine(1, 119, 318, 119);
for (int i=9; i<310; i+=10)
myGLCD.drawLine(i, 117, i, 121);
for (int i=19; i<220; i+=10)
myGLCD.drawLine(157, i, 161, i);
// Draw sin-, cos- and tan-lines
myGLCD.setColor(0,255,255);
myGLCD.print("Sin", 5, 15);
for (int i=1; i<318; i++)
{
myGLCD.drawPixel(i,119+(sin(((i*1.13)*3.14)/180)*95));
}
myGLCD.setColor(255,0,0);
myGLCD.print("Cos", 5, 27);
for (int i=1; i<318; i++)
{
myGLCD.drawPixel(i,119+(cos(((i*1.13)*3.14)/180)*95));
}
myGLCD.setColor(255,255,0);
myGLCD.print("Tan", 5, 39);
for (int i=1; i<318; i++)
{
myGLCD.drawPixel(i,119+(tan(((i*1.13)*3.14)/180)));
}
delay(2000);
myGLCD.setColor(0,0,0);
myGLCD.fillRect(1,15,318,224);
myGLCD.setColor(0, 0, 255);
myGLCD.setBackColor(0, 0, 0);
myGLCD.drawLine(159, 15, 159, 224);
myGLCD.drawLine(1, 119, 318, 119);
// Draw a moving sinewave
x=1;
for (int i=1; i<(318*20); i++)
{
x++;
if (x==319)
x=1;
if (i>319)
{
if ((x==159)||(buf[x-1]==119))
myGLCD.setColor(0,0,255);
else
myGLCD.setColor(0,0,0);
myGLCD.drawPixel(x,buf[x-1]);
}
myGLCD.setColor(0,255,255);
y=119+(sin(((i*1.1)*3.14)/180)*(90-(i / 100)));
myGLCD.drawPixel(x,y);
buf[x-1]=y;
}
delay(2000);
myGLCD.setColor(0,0,0);
myGLCD.fillRect(1,15,318,224);
// Draw some filled rectangles
for (int i=1; i<6; i++)
{
switch (i)
{
case 1:
myGLCD.setColor(255,0,255);
break;
case 2:
myGLCD.setColor(255,0,0);
break;
case 3:
myGLCD.setColor(0,255,0);
break;
case 4:
myGLCD.setColor(0,0,255);
break;
case 5:
myGLCD.setColor(255,255,0);
break;
}
myGLCD.fillRect(70+(i*20), 30+(i*20), 130+(i*20), 90+(i*20));
}
delay(2000);
myGLCD.setColor(0,0,0);
myGLCD.fillRect(1,15,318,224);
// Draw some filled, rounded rectangles
for (int i=1; i<6; i++)
{
switch (i)
{
case 1:
myGLCD.setColor(255,0,255);
break;
case 2:
myGLCD.setColor(255,0,0);
break;
case 3:
myGLCD.setColor(0,255,0);
break;
case 4:
myGLCD.setColor(0,0,255);
break;
case 5:
myGLCD.setColor(255,255,0);
break;
}
myGLCD.fillRoundRect(190-(i*20), 30+(i*20), 250-(i*20), 90+(i*20));
}
delay(2000);
myGLCD.setColor(0,0,0);
myGLCD.fillRect(1,15,318,224);
// Draw some filled circles
for (int i=1; i<6; i++)
{
switch (i)
{
case 1:
myGLCD.setColor(255,0,255);
break;
case 2:
myGLCD.setColor(255,0,0);
break;
case 3:
myGLCD.setColor(0,255,0);
break;
case 4:
myGLCD.setColor(0,0,255);
break;
case 5:
myGLCD.setColor(255,255,0);
break;
}
myGLCD.fillCircle(100+(i*20),60+(i*20), 30);
}
delay(2000);
myGLCD.setColor(0,0,0);
myGLCD.fillRect(1,15,318,224);
// Draw some lines in a pattern
myGLCD.setColor (255,0,0);
for (int i=15; i<224; i+=5)
{
myGLCD.drawLine(1, i, (i*1.44)-10, 224);
}
myGLCD.setColor (255,0,0);
for (int i=224; i>15; i-=5)
{
myGLCD.drawLine(318, i, (i*1.44)-11, 15);
}
myGLCD.setColor (0,255,255);
for (int i=224; i>15; i-=5)
{
myGLCD.drawLine(1, i, 331-(i*1.44), 15);
}
myGLCD.setColor (0,255,255);
for (int i=15; i<224; i+=5)
{
myGLCD.drawLine(318, i, 330-(i*1.44), 224);
}
delay(2000);
myGLCD.setColor(0,0,0);
myGLCD.fillRect(1,15,318,224);
// Draw some random circles
for (int i=0; i<100; i++)
{
myGLCD.setColor(random(255), random(255), random(255));
x=32+random(256);
y=45+random(146);
r=random(30);
myGLCD.drawCircle(x, y, r);
}
delay(2000);
myGLCD.setColor(0,0,0);
myGLCD.fillRect(1,15,318,224);
// Draw some random rectangles
for (int i=0; i<100; i++)
{
myGLCD.setColor(random(255), random(255), random(255));
x=2+random(316);
y=16+random(207);
x2=2+random(316);
y2=16+random(207);
myGLCD.drawRect(x, y, x2, y2);
}
delay(2000);
myGLCD.setColor(0,0,0);
myGLCD.fillRect(1,15,318,224);
// Draw some random rounded rectangles
for (int i=0; i<100; i++)
{
myGLCD.setColor(random(255), random(255), random(255));
x=2+random(316);
y=16+random(207);
x2=2+random(316);
y2=16+random(207);
myGLCD.drawRoundRect(x, y, x2, y2);
}
delay(2000);
myGLCD.setColor(0,0,0);
myGLCD.fillRect(1,15,318,224);
for (int i=0; i<100; i++)
{
myGLCD.setColor(random(255), random(255), random(255));
x=2+random(316);
y=16+random(209);
x2=2+random(316);
y2=16+random(209);
myGLCD.drawLine(x, y, x2, y2);
}
delay(2000);
myGLCD.setColor(0,0,0);
myGLCD.fillRect(1,15,318,224);
for (int i=0; i<10000; i++)
{
myGLCD.setColor(random(255), random(255), random(255));
myGLCD.drawPixel(2+random(316), 16+random(209));
}
delay(2000);
myGLCD.fillScr(0, 0, 255);
myGLCD.setColor(255, 0, 0);
myGLCD.fillRoundRect(80, 70, 239, 169);
myGLCD.setColor(255, 255, 255);
myGLCD.setBackColor(255, 0, 0);
myGLCD.print("That's it!", CENTER, 93);
myGLCD.print("Restarting in a", CENTER, 119);
myGLCD.print("few seconds...", CENTER, 132);
myGLCD.setColor(0, 255, 0);
myGLCD.setBackColor(0, 0, 255);
myGLCD.print("Runtime: (msecs)", CENTER, 210);
myGLCD.printNumI(millis(), CENTER, 225);
delay (10000);
}
What adapter shield did you get and did you remember to change this UTFT myGLCD(ITDB32S,38,39,40,41); based on that shield?
In red is the model of the display, you also need to change this to match the display you are using. See the UTFT.cpp file for all the possible models. Pay attention to the display_x, display_y and the mode for they are very important.
TNTmer:
Hi,The link where I bought the Arduino and TFT touch screen is:
http://www.amazon.com/dp/B00J9AAZV6/ref=pe_385040_30332200_TE_itemThe link where I got the library is:
Electronics - Henning Karlsen
This should be on post #1, unless someone here can guess what display you got. I surely cant.
Bare that in mind for next posts.
That display is an ILI9320.Open the UTFT 320*240 demo example and replace
UTFT myGLCD(ITDB24E_16,38,39,40,41);
with EITHER
UTFT myGLCD(ILI9320_8,38,39,40,41);
or
UTFT myGLCD(ILI9320_16,38,39,40,41);
The link says 8/16 bits but the display comes with only one set by default (hardware).
THX for the help.
I tried to change the code and I still get the following error message (it repeats itself):
Arduino: 1.5.7 (Windows 7), Board: "Arduino Mega or Mega 2560, ATmega1280"
C:\Users\USER\Documents\Arduino\libraries\UTFT\hardware/avr/HW_ATmega1280.h:218:3: note: in expansion of macro 'pulse_low'
pulse_low(P_WR, B_WR);pulse_low(P_WR, B_WR);
^
C:\Users\USER\Documents\Arduino\libraries\UTFT\hardware/avr/HW_ATmega1280.h:218:13: error: invalid type argument of unary '*' (have 'uint8_t {aka unsigned char}')
pulse_low(P_WR, B_WR);pulse_low(P_WR, B_WR);
^
C:\Users\USER\Documents\Arduino\libraries\UTFT\hardware/avr/HW_AVR_defines.h:4:28: note: in definition of macro 'sbi'
#define sbi(reg, bitmask) *reg |= bitmask
^This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
It should compile if your previous code WAS compiling as well.
I would try on 1.0.5 with the latest version of UTFT.
Code:
File -> Examples -> UTFT -> Arduino (AVR) -> UTFT_Demo_320x240
Change the display type as per instructions given earlier.
Hello, i try this display.
What is method to upload image on display??
I converted my image in exadecimal code buti don't know where put this code.
Can you help me?
Thanks
Hello, i try this display.
What is method to upload image on display??
I converted my image in exadecimal code buti don't know where put this code.
You need to use the drawBitmap() function, and make your image into a .bmp file.
Sample:
#include <UTFT.h>
#include <UTouch.h>
// Declare which fonts we will be using
extern uint8_t SmallFont[];
//Declare the image file being used
extern unsigned int conix_64x64[0x1000];
//myGLCD(RS,WR,CS,RST,ALE,mode);
UTFT myGLCD(A1,A2,A0,A3,A5,ITDB32S); // FIX THIS
//myTouch(TCLK,TCS,DIN,DOUT,IRQ);
UTouch myTouch(13,10,11,12,A4); //FIX THIS
void setup()
{
myGLCD.InitLCD(LANDSCAPE);
myGLCD.clrScr();
myGLCD.setFont(SmallFont);
myTouch.InitTouch(LANDSCAPE);
myTouch.setPrecision(PREC_EXTREME);
myGLCD.fillScr(0,0,0);
myGLCD.drawBitmap(100,0,64,64, conix_64x64,2);
//(100,0)=draw location, (64,64)=(pixel height and width), (conix_64x64)= image name, (2)= size multiplier.
}
void loop()
{
}
pCnsL64x64.c (37.2 KB)
THX for the help.
I tried to change the code and I still get the following error message (it repeats itself):
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:45:29: error: HW_ATmega1280.h: No such file or directory
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp: In constructor 'UTFT::UTFT(byte, int, int, int, int, int)':
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:234: error: invalid conversion from 'volatile uint8_t*' to 'uint8_t'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:236: error: invalid conversion from 'volatile uint8_t*' to 'uint8_t'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:238: error: invalid conversion from 'volatile uint8_t*' to 'uint8_t'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:240: error: invalid conversion from 'volatile uint8_t*' to 'uint8_t'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:244: error: invalid conversion from 'volatile uint8_t*' to 'uint8_t'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:247: error: invalid type argument of 'unary '
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:258: error: invalid conversion from 'volatile uint8_t' to 'uint8_t'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:260: error: invalid conversion from 'volatile uint8_t*' to 'uint8_t'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:262: error: invalid conversion from 'volatile uint8_t*' to 'uint8_t'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:264: error: invalid conversion from 'volatile uint8_t*' to 'uint8_t'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:268: error: invalid conversion from 'volatile uint8_t*' to 'uint8_t'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp: In member function 'void UTFT::LCD_Write_COM(char)':
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:283: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp: In member function 'void UTFT::LCD_Write_DATA(char, char)':
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:294: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp: In member function 'void UTFT::LCD_Write_DATA(char)':
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:308: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp: In member function 'void UTFT::InitLCD(byte)':
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:328: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:330: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:332: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:335: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:386: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp: In member function 'void UTFT::fillRect(int, int, int, int)':
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:526: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:528: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:530: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:534: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:536: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:538: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp: In member function 'void UTFT::drawCircle(int, int, int)':
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:606: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:644: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp: In member function 'void UTFT::clrScr()':
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:664: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:667: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:685: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp: In member function 'void UTFT::fillScr(word)':
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:702: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:705: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:723: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp: At global scope:
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:749: error: prototype for 'void UTFT::setBackColor(word)' does not match any in class 'UTFT'
C:\Users\USER\Documents\Arduino\libraries\UTFT/UTFT.h:189: error: candidates are: void UTFT::setBackColor(uint32_t)
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:743: error: void UTFT::setBackColor(byte, byte, byte)
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp: In member function 'void UTFT::drawPixel(int, int)':
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:767: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:770: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp: In member function 'void UTFT::drawLine(int, int, int, int)':
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:788: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:825: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp: In member function 'void UTFT::drawHLine(int, int, int)':
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:837: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:841: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:846: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:856: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp: In member function 'void UTFT::drawVLine(int, int, int)':
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:867: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:871: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:876: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:886: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp: In member function 'void UTFT::printChar(byte, int, int)':
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:896: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:947: error: invalid type argument of 'unary *'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp: In member function 'void UTFT::rotateChar(byte, int, int, int, int)':
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:959: error: invalid type argument of 'unary '
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:986: error: invalid type argument of 'unary '
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp: At global scope:
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp:1213: error: no 'void UTFT::drawPixelLine(int, int, int, uint16_t)' member function declared in class 'UTFT'
C:\Users\USER\Documents\Arduino\libraries\UTFT\UTFT.cpp: In member function 'void UTFT::drawBitmap(int, int, int, int, unsigned int, int)':
I already advised you to install 1.05 and the latest UTFT version.
Good Luck.