TFT

Hi,

Has anyone used this particular display http://www.ebay.com/itm/3-2-inch-TFT-LCD-Module-Display-320-x-240-Touch-Panel-PCB-adapter-color-screen-/251057269544?pt=LH_DefaultDomain_0&hash=item3a742deb28?
I wanted to try out the graphics with UTFT.lib so i connected it to my arduino uno as the requirements file says: http://pokit.org/get/?7660afa568028411b3714ddc8fe3c931.jpg

And i coded a simple program just to try out a few functions:

#include <memorysaver.h>
#include <UTFT.h>

#define CS 25
#define RS 26
#define WR 27
#define RST 28

int dsy, dsx, i=0;
UTFT myGLCD(SSD1289, RS, WR, CS, RST);

void setup() {
myGLCD.InitLCD(1);
myGLCD.clrScr();
myGLCD.setBackColor(VGA_BLACK);
myGLCD.setColor(VGA_WHITE);
dsy=myGLCD.getDisplayYSize();
dsx=myGLCD.getDisplayXSize();
}

void loop() {
myGLCD.clrScr();
myGLCD.print(String(i), dsy/2-5, dsy/2, 0);
delay(1000);
i++;
}

Now, when i upload the program nothing happens, the screen is just blank.
Is there maybe a different data pin mapping?

Seems like you're missing some pins there.

Based on that eBay page, the LCD controller uses 16 I/O pins. The Touchscreen controller uses SPI. I only see you defining SPI connections.

Yes it is a bit strange, but the requirement file for the utft library stated that the data pins must be like this http://pokit.org/get/?7660afa568028411b3714ddc8fe3c931.jpg

With that and defining CS, RS, WR and RST i have declared all pins for LCD.. I didn't use any for the touch module.

Well i found what was wrong (i defined the pins wrong in the code) but now for this code:

#include <memorysaver.h>
#include <UTFT.h>

#define CS A2
#define RS A3
#define WR A4
#define RST A5

extern uint8_t BigFont;

UTFT myGLCD(SSD1289, RS, WR, CS, RST);

void setup() {
myGLCD.InitLCD(PORTRAIT);
myGLCD.setFont(BigFont);
myGLCD.clrScr();
myGLCD.setBackColor(120,120,120);
}

void loop() {
myGLCD.clrScr();
myGLCD.setColor(VGA_BLACK);
myGLCD.print("* Universal Color TFT Display Library *", CENTER, 1);
delay(1000);
}

i get the following:
When i turn it on the screen goes black, then greyish and it flickers a bit and it repeats it self every second.