Hi!
I just unboxed an Leonardo and an ITDB02 TFT shield.
But I keeps displaying a white blank screen when i try running the examples that come with the UTFT library.
It lights up and all as it should but nothing more. The line i use to initialize UTFT looks like this: UTFT myGLCD(ILI9325D_8,19,18,17,16); (ILI9325D_8 is the same device constant as ITDB28)
( I'm not sure bout the pin numbers either, tried to figure out how those designations map over to the shield but failed so far to find sane relations)
I've wasted like 10hours already trying to figure it out while that white screen keeps staring at me.
Has anyone of you used the UTFT library on an leonardo? I read somewhere that 1.0.x IDE breaks some libraries, but since earlier versions of the arduino IDE do not support the leonardo;
I haven't been able to try those.
telamon:
Has anyone of you used the UTFT library on an leonardo? I read somewhere that 1.0.x IDE breaks some libraries, but since earlier versions of the arduino IDE do not support the leonardo;
I haven't been able to try those.
If the code compiles I doubt it's a problem with the libraries. The library incompatabilities were caused by changing one of the fundemental header files from "Wiring.h" to "Arduino.h", without either one included the IDE can't recongize many lower-level commands used. If it was there'd be error messages for for all the unrecognized commands.
My educated guess is that your problem is with the pin identification, but since I don't have either the sheild or a Leonardo that's about all the assistance I can give you.
Thanks Fark-seeker;
I think you guessed correctly.
I got the ITDB02 touch library working after having identified the control pins correctly.
Did the same for the UTFT initializer:
UTFT myGLCD(ILI9325D_8,A5,A4,A3,A2);
I couldn't find the Reset pin on this page , so i set it temporarily to A2 for lack of better ideas.
This did't work ofcourse but I feel a bit more confident about that line than the previous.
Anyways, I came across this article Electronics - Henning Karlsen
and seeing as they're hard referenced by avr names i figured i might aswell compare the differences between an uno and leo;
Here's a mapping comparison for the DB8->DB15 pin referenced by the shield:
Not for long I fear. The Curiosity that brought you to Arduino, then to Leonardo... Will Eventually bring you to the registers as well. There is an old expression that Might fit here...
A Journey of a Thousand Miles... Is Begun with a single step.
Been There, Done That.
I can tell you however that learning is its own reward, Expressing the leanings to others, One of the Greater Joys Life provides