Hi guys
First of all, I'd just like to say that this is my very first experience using Arduino and have never worked with software <-> hardware I/O before, and have only done software code till now.
I'm JUST starting out with Arduino and have bought a screen off aliexpress, the link https://www.aliexpress.com/item/3-2-TFT-LCD-Touch-Screen-Expansion-Shield-W-Touch-Pen-For-Arduino/32795070895.html, but beware that the item show on the product page and the one I received, we're different - a picture of the one I received are attached to this post though.
Currently the TFT shield is mounted on a Uno clone and I've tried different versions of the UTFT library that supports the ILI9327 chipset, but I've had no luck so far getting anything to show on the screen.
I have seen mentioned on the net something about 8bit and 16bit TFTs, but I have not yet figured out what it does - some of the UTFT library version I tried, did have a ILI9327_8 driver in them, so dunno if a 16 bit version of ILI9327 even exists.
As I understand it, it's possible to connect the TFT using different methods, I2C, SPI, or "custom" pins - I'm hoping to use the SPI port and the code I'm trying to is as follows:
// UTFT_ViewFont (C)2014 Henning Karlsen
// web: http://www.henningkarlsen.com/electronics
//
// This program is a demo of the included fonts.
//
// 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[];
extern uint8_t BigFont[];
extern uint8_t SevenSegNumFont[];
// Set the pins to the correct ones for your development shield
// ------------------------------------------------------------
// My chipKit Uno32/uC32 shield         : <display model>,38,39,40,41
// My chipKit Max32 shield           : <display model>,82,83,84,85
// AquaLEDSource All in One Super Screw Shield : <display model>,82,83,84,85
//
// Remember to change the model parameter to suit your display module!
UTFT myGLCD(ILI9327,38,39,40,41);
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) {};
}
Hope someone here can point out any obvious mistakes I've done, like SPI pin IDs or similar