Displaying large images on touch screen using SD card

I'm using a Sainsmart 3.2 inch touch screen on a mega with the UTFT library. So far I've gotten the touch screen and the SD card to work properly. However, I'd like to load 320x240 pixel images to use as background images for menus and whatnot. How do I go about doing this?

I found this link which pretty much explains exactly what I want but when I compile the sketch it throws in an error saying myGLCD.drawPixelLine(0, y, SCREEN_WIDTH, buf); is not a function of the UTFT library. Any ideas?

Hello,

You should use this library :wink:

Hi,

I did see that although it seems to be compatible with only fat16 formatted SD cards and I'm not sure how to go about doing this. I have an 8gb SD card. From my understanding I'd need a 1-2gd SD card right? Or is there a way to format an 8gb SD card?

I used a software called MiniTool Partition Wizard to split the 8gb card in to 4 FAT16 partitions and used the code bellow (reef is a 320x240 image). I just get a blank screen. Help?

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

UTFT         myGLCD(ITDB32S, 38, 39, 40, 41);
UTFT_tinyFAT myFiles(&myGLCD);

void setup()
{
  file.setSSpin(53);
  myFiles.loadBitmap(0,0,320,240,"reef.raw");
}

void loop()
{
}