Arduino Uno + 3.5 inch TFT Touch LCD Screen

Hi Guys

I’m trying connect this screen TFTTouchLCDScreen to Arduino Uno3.

Library: UTFT from this page UTFT - Rinky-Dink Electronics

and using this example code:

#include <UTFT.h>

extern uint8_t SmallFont[];
extern uint8_t BigFont[];
extern uint8_t SevenSegNumFont[];

// Standard Arduino Uno/2009 shield            : <display model>,A5,A4,A3,A2

UTFT myGLCD(ITDB32S,A5,A4,A3,A2);
void setup()
{
  myGLCD.InitLCD();

  myGLCD.clrScr();
}

void loop()
{
  myGLCD.setColor(0, 255, 0);
  myGLCD.setBackColor(0, 0, 0);

  myGLCD.setFont(BigFont);
  myGLCD.print(" !\"#$%&'()*+,-./", CENTER, 0);
  myGLCD.print("0123456789:;<=>?", CENTER, 16);
  myGLCD.print("@ABCDEFGHIJKLMNO", CENTER, 32);
  myGLCD.print("PQRSTUVWXYZ[\\]^_", CENTER, 48);
  myGLCD.print("`abcdefghijklmno", CENTER, 64);
  myGLCD.print("pqrstuvwxyz{|}~ ", CENTER, 80);

  myGLCD.setFont(SmallFont);
  myGLCD.print(" !\"#$%&'()*+,-./0123456789:;<=>?", CENTER, 120);
  myGLCD.print("@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_", CENTER, 132);
  myGLCD.print("`abcdefghijklmnopqrstuvwxyz{|}~ ", CENTER, 144);

  myGLCD.setFont(SevenSegNumFont);
  myGLCD.print("0123456789", CENTER, 190);

  while(1) {};
}

but only result is white screen, nothing happen. Is any one can point me to right track?
I have screen attached directly to board. Could you please see attachment?

Sorry I can not attach photo :frowning:

To use UTFT, you must set the controller type in the UTFT constructor to match your display. You have not done that, it is still set to the default type of ITDB32S. The correct type for the ILI9327 is TFT01_32W or ITDB32WC. You can of course simply set it as type ILI9327. These are all defined in the file UTFT.H.

Once you look in UTFT.H, you’ll see the ILI9327 is only listed in 16 bit mode. So, with your UNO, you are out of luck with the official version of UTFT since it does not support the ILI9327 controller type in 8 bit mode. Attached is a file that will at least show you how to initialize and draw some shapes on your LCD. From there, you can use the structure of the program to see how to modify UTFT to work in 8 bit mode.

All that said, you’ll find you have next to no flash memory left for your program once you load UTFT :’(

LI9327_UNO.ino (4.97 KB)

Thank you avr_fred for help

I have working code and now all works fine but I hit another issue. I have this screen attached directly to arduino uno. I need attach also DHT11 and BMP085. Is anyone have idea how can I connect screen using wires? I can not find any samples in web.