Arduino Mega + SSD1963 + ER-TFTM050: Read and display an Image on the TFT

Hi,

I’m trying to view a .raw image on the SD card on the shield or on the TFT. I convert the image using ImageConverter565.exe in raw format for AVR. Then i upload the image in a micro sd 1Gb format in FAT16.

I use the library UTFT with UTFT_tinyFAT but I can’t find the micro sd memory. I just paste a simple code that suppose to load an image that I will like to display but doesn’t find the sd:

#include <tinyFAT.h>
#include <UTFT.h>
#include <UTFT_tinyFAT.h>

UTFT myGLCD(ITDB32S, 38, 39, 40, 41); // Remember to change the model parameter to suit your display module!
UTFT_tinyFAT myFiles(&myGLCD);

int picsize_x, picsize_y;

//word res;

void setup()
{
// -------------------------------------------------------------
pinMode(8, OUTPUT); //backlight
digitalWrite(8, HIGH);//on
// -------------------------------------------------------------

Serial.begin(9600);
myGLCD.InitLCD();
myGLCD.clrScr();
file.initFAT();
myGLCD.setColor(255,255,255);
picsize_x=myGLCD.getDisplayXSize();
picsize_y=myGLCD.getDisplayYSize();

}

void loop()
{

myGLCD.drawBitmap (0, 0, picsize_x, picsize_y, myFiles.loadBitmap(0, 0, picsize_x, picsize_y, “pic101.RAW”));

}

What I’m doing wrong?
Does the UTFT library manage the SPI between the SD and the TFT or I have to manage this?
Why I can’t find the microSD?
I can draw image pixel by pixel but I can’t load a raw image from the sd!! :zipper_mouth_face:

Hope to find a solution, I think I’m missing something !!! :sweat_smile: :sweat_smile:

Thank you in advance for your help!!! :roll_eyes: