Uno library for Display Images project

Hey all, new to this forum and Arduino. Found a tutorial and code on youtube. I believe the creator isn’t using an uno, but his code didn’t work on my uno and 2.8 TFT. I just get white screen. I posted my code I tried to his youtube. He thinks I need a different library. Any suggestions? Code below. His project link is: Displaying Images on 3.2 Inch TFT using Arduino - Embedded Laboratory

Thanks!!!


#include <SPI.h>
#include <SdFat.h>
#include <UTFT.h>
#include <UTFT_SdRaw.h>

#define SD_CHIP_SELECT 10 // SD chip select pin(Arduino Mega)
SdFat sd;

UTFT myGLCD(ILI9341_16, 38, 39, 40, 41);
UTFT_SdRaw myFiles(&myGLCD);

void setup()
{
Serial.begin(115200);
delay(100);
bool mysd = 0;
while (!mysd)
{
if (!sd.begin(SD_CHIP_SELECT, SPI_FULL_SPEED))
{
Serial.println(F(“Card failed, or not present”));
Serial.println(F(“Retrying…”));
}
else
{
mysd = 0;
Serial.println(F(“Card initialised.”));
}
}
Serial.println(F(“Initialising LCD.”));
myGLCD.InitLCD();
myGLCD.clrScr();
}

void loop()
{
myFiles.load(0, 0, 320, 240, “black_panther.RAW”, 1, 0);
delay(4000);
myFiles.load(0, 0, 320, 240, “black_widow.RAW”, 1, 0);
delay(4000);
myFiles.load(0, 0, 320, 240, “bucky.RAW”, 1, 0);
delay(4000);
myFiles.load(0, 0, 320, 240, “captain_america.RAW”, 1, 0);
delay(4000);
}

This code was used on a Mega. That is why it has the comment Arduino Mega. The Mega has pins, such as 38, 39, 40, 41 that are not present on an Uno. I suggest that you understand the code and adapt it for your situation.

Yeah thanks, trying to figure it out

The story makes me very confused. You make it clear

Can you elaborate?