#Adafruit TFT LCD Arduino -- File not found issues.

1 messages · Page 1 of 1 (latest)

normal latch
#

I'm working on a project where I have a Adafruit 1.8" TFT LCD (v1) soldered to an Arduino Uno. When i run the ShieldTest code to display an image, for example, parrot.bmp, it works. Going off of that code, I am trying to build my project off of it. My game is basically inspired by Nintendo's 1, 2 Switch's Fake draw. The code i have set up for it is here https://github.com/SkinnyJosiah/Capstone_QuickDraw/blob/main/Arduino Code/QuickDraw.ino

The issue is, when i run this code, it returns this through the serial monitor

Files on SD card:
P1OPTI~1.BMP
P2OPTI~1.BMP
P2WINE~1.BMP
P1WINE~1.BMP
1LLP13~1.BMP
3LLP11~1.BMP
3LLP12~1.BMP
2LLP13~1.BMP
2LLP12~1.BMP
1LLP12~1.BMP
2LLP11~1.BMP
1LLP11~1.BMP
3LIVES~1.BMP
2LIVES~1.BMP
3LIVES~2.BMP
2LIVES~2.BMP
1LIVEL~1.BMP
LIVESS~1.BMP
1LIVEL~2.BMP
3LIVES~1.PNG
2LIVES~1.PNG
1LIVEL~1.PNG
LIVESS~1.PNG
P1WINQD.BMP
P2WINQD.BMP
STANDO~1.BMP

(the ones that are crossed out will be renamed to not have the tilda)
OPTQD.BMP
PLAYQD.BMP
PARROT.BMP
Attempting to open OPTQD.bmp...Successfully opened OPTQD.bmp
Attempting to open file: PLAYQD.bmp
File not found: PLAYQD.bmp
Play Menu Function Initialized.
Attempting to open file: OPTQD.bmp
File not found: OPTQD.bmp
Options Menu Function Initialized.

All in all, the code has the SD card read off the files and try to open Options and Play. As you can see, it says they are in the SD card and does try to open OPT (options) and succeeds, then fails with play. Any help would be appreciated! Thank you!

GitHub

Repository for the Quick Draw Arduino project we're working on. - SkinnyJosiah/Capstone_QuickDraw

#

(Yes, the sd card is not in in this video, since its in my computer)

pale wadi
#

You are testing bmpFile twice, first time as an uninitialized pointer, before you actually try to open the image file.

normal latch
pale wadi
normal latch
#

Yeah. I updated the code in the repo and reconverted my files to make sure that they should work, but i just get this in the monitor

1LLP11~1.BMP
1LLP12~1.BMP
1LLP13~1.BMP
2LIVES~1.BMP
2LIVES~3.BMP
2LLP11~1.BMP
2LLP12~1.BMP
2LLP13~1.BMP
3LIVES~1.BMP
3LIVES~3.BMP
3LLP11~1.BMP
3LLP12~2.BMP
LIVESS~1.BMP
LSQD.BMP
Attempting to open OPTQD.BMP...Failed to open OPTQD.BMP