I am fully new on it, I try to "see" in my LCD a picture so I have converted it with the utility that cames with the UTFT library, I mean imageconverter565.exe
So I get a logo.c (my array) in 800 X 480 (even in smaller sizes.... 200 x 122)
However when I try to upload I get an error:
"logo.c:9: error: size of array 'logo' is too large
const unsigned short logo[0x17D40] PROGMEM ={
^
Exception in thread "AWT-EventQueue-0"......"
I just want to see a picture on the screen, at first at full-resolution (800x480)
Where do I go wrong? Another way? the LCD cames with SDCard.... but no idea about it...
The image is 800x480 pixels x 2 because it is of type short, which is 2 bytes. So in total that equals 750K bytes of memory which no arduino has. You need to use an SD Card and a library compatible with both the SD card library and UTFT library.
Once that is done, you should be able to use the examples supplied with UTFT_SdRaw.
UTFT_SdRaw is now installed through library manager.
Any further questions, feel free to ask.
Regards,
Graham
Hello ghlawrence2000, first of all, thank you very much for your help.
I tell you.... I was reading meanwhile and I saw UTF_tinyFAT and tinyFAT libraries, so I try with it and I can see my picture from the SDCard of my TFT.
It was so easy, just import libraries, copy my raw image to de SD .... and load the example.... (I have to test more to "improve" the results, because it is not exactly I wanted). And I see it.
But, now I have doubts... which differents from the way you told me (SdFat / UTFT_SdRaw) .... ?????
ghlawrence2000:
If UTFT_tiny_FAT works for you, stick with that. But UTFT_SdRaw is faster and not limited to 2GB SD cards, and can use folders and long filenames.
Regards,
Graham
MMmm.... yes as you tell, it is rather slow... and I have another question. The test I told you, just show the image at 800x480 (the resolution of my TFT), two more doubts:
1- it could be interesting for my to see the picture at a lower resolution, I mean, for example to draw buttons in another part of the TFT, it seems only work in full screen although I have to read the example carefully to see if it is possible.
2- The way you told me, with your libraries, is it as simple as the one or there are necesary more steps???? If it is as simple as the first I could try to compare speed.