Hi,
I have bought for my Arduino Uno this Display:
http://www.exp-tech.de/product_info.php?info=p586_3-2--widescreen-tft-lcd-screen-module--itdb02-3-2wd.html
and also this shield:
http://www.exp-tech.de/product_info.php?info=p570_itdb02-arduino-shield-v2-0--arduino-kompatibel-.html
As library I use this:
http://www.henningkarlsen.com/electronics/library.php?id=51
So far so good, ... when I load an example Programm from this Library on the Arduino there is nothing, it stay´s white and flicker a little. With other librarys its the same.
So this is such an example:
#include <UTFT.h>
#include <avr/pgmspace.h>
// Declare which fonts we will be using
extern uint8_t SmallFont[];
// Uncomment the next line for Arduino 2009/Uno
UTFT myGLCD(ITDB32WD,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!
extern unsigned int info[0x400];
extern unsigned int icon[0x400];
extern unsigned int tux[0x400];
void setup()
{
myGLCD.InitLCD();
myGLCD.setFont(SmallFont);
}
void loop()
{
myGLCD.fillScr(255, 255, 255);
myGLCD.setColor(255, 255, 255);
myGLCD.print(" *** A 10 by 7 grid of a 32x32 icon *** ", CENTER, 228);
for (int x=0; x<10; x++)
for (int y=0; y<7; y++)
myGLCD.drawBitmap (x32, y32, 32, 32, info);
delay(5000);
myGLCD.fillScr(255, 255, 255);
myGLCD.setColor(255, 255, 255);
myGLCD.print(" Two different icons in scale 1 to 4 ", CENTER, 228);
int x=0;
for (int s=0; s<4; s++)
{
x+=(s32);
myGLCD.drawBitmap (x, 0, 32, 32, tux, s+1);
}
x=0;
for (int s=4; s>0; s--)
{
myGLCD.drawBitmap (x, 224-(s32), 32, 32, icon, s);
x+=(s*32);
}
delay(5000);
}
So what´s wrong? Whats about this line:
UTFT myGLCD(ITDB32WD,19,18,17,16)
I have given in my LCD model "ITDB32WD". But whats with the Pins "19,18,17,16"? In the Document "UTFT-Requirements" it is explaint, but I think I am to stupid for this
If I change it in "4,5,15,17" its the same.
I hope somebody can help me!!
Thanks, and I hope my English is not too bad...
UTFT.pdf (86.3 KB)
UTFT_Requirements.pdf (305 KB)