Go Down

Topic: Display ITDB02-3.2WD (Read 3 times) previous topic - next topic

Luggal

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 (x*32, y*32, 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+=(s*32);
    myGLCD.drawBitmap (x, 0, 32, 32, tux, s+1);
  }
  x=0;
  for (int s=4; s>0; s--)
  {
    myGLCD.drawBitmap (x, 224-(s*32), 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 :smiley-roll-sweat:
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...



doc_norway


...8 bit (256 colors) only


This is not correct. 8bit and 16bit refer to the databus width and not color depth.

UTFT is set up to use 65k colors on all supported displays, but it could, in theory, support 256, 65k and 262k colors. Color depth is set up in the init section of the library.

/Henning

Docedison

And Sir you were also wrong about the data bus width... I copy and Quote:
Quote
ITDB02 default use the 8bit mode , and if you need the 16 bit mode, you can tear the LCD screen down form the board , and move the R2 resistor to R1 to change the data mode. When you use the 8bit mode , the DB8-DB15 is used ,please remember to pull the DB0-DB7 to GND.
form your link to the ITDB802 data sheet last sentence of the Description...

Doc.
--> WA7EMS <--
"The solution of every problem is another problem." -Johann Wolfgang von Goethe
I do answer technical questions PM'd to me with whatever is in my clipboard

doc_norway


And Sir you were also wrong about the data bus width...


Please explain why you think I was wrong. All I said is that 8bit and 16bit refer to databus width. I did not say it couldn't be changed.

And which datasheet is that quote from?

/Henning

Docedison

Sir I wasn't referring to you. I was referring to the person who made the 8 Bit comment re: Arduino and his obvious lack of knowledge about Arduino and it's capabilities. There were two links on the original post, the second link at the bottom of that page takes you to The 'lesser' of the two displays was described in the original post as Only having an 8 Bit data bus and thus 256 colors... sounded to me as if though a person from Itead Studios was trying to 'push' the more expensive of the two Itead products and that generated the energy to re read and confirm prior knowledge about parallel loading color graphic displays and that product specifically as I own one, bought it for $20.00 US
I quote the whole post...
Quote
Hello,

The display you got, the 3.2"WD is a 16 bit only display (65.000 colors)
The Arduino shield you got is to be used with an Arduino Uno and is 8 bit (256 colors) only
The Library supports both, but to use this display you need the Mega shield:

http://www.exp-tech.de/product_info.php?info=p535_itead-studio-itdb02-arduino-mega-shield-v2-0.html

And an Arduino Mega board.

On the Arduino uno and you current shield you can only use 8 bit compatible displays such as:

http://www.exp-tech.de/product_info.php?info=p226_iteadstudio-itdb02-2-4d-2-4---tft-lcd-for-arduino.html

Gr. Remco
I am not aware of the data bus limiting color abilities. I am aware that the processor (Uno 328) can do int calculations and that the unsigned int declaration is for a 16 bit number. The loading of a 16 Bit number requires some small work to break it into bytes that the controller can use in 8 bit mode however I am not aware of any limitations that are created by using 8 bit mode except the time it take to load a graphic screen. So perhaps in my ignorance my post was inaccurate for this I apologize and should I be guilty of ignorance I will cheerfully remove the 'inaccurate post' and apologize for misleading anyone that had the misfortune to read it.

Doc
--> WA7EMS <--
"The solution of every problem is another problem." -Johann Wolfgang von Goethe
I do answer technical questions PM'd to me with whatever is in my clipboard

Go Up