Hey everyone, this is going to be long to provide the most comprehensive description of what is happening.
First off, I am new to Arduino. I am currently in a college class in which we are learning how to use them and have to make our own games with the Arduino, they are allowed to have a physical component but my group decided not to incorporate one.
Our game is a story based game on the Arduino. We have successfully connected a Wii Nunchuk controller to the RedBoard and the inputs from that work just fine. This will be the controller of our story based game that allows the user to play the different mini-games such as basic basketball based on how many times the user clicks a button before they swing their arm and a sort of DDR on the Arduino. This part of the project, the Nunchuk works well, but it is important that I mention it as it takes up two Analog pins.
The reason I bring this up is that we also have an LCD that we are wiring in and making graphics for (through .bmp imaged loaded onto an SD card). This is where we are having issues. Here's what I can provide you with.
The screen is 100% wired correctly. I hooked up all the pins directly to the same pins on the RedBoard that they would go to if it was placed on top of the RedBoard. I also know that it works since I am able to use the MCUFRIEND_kbv.h Library graphics test and graphics appear on it, at least, the ones that are written into the code. When I try to run the ShowBMP example from the library though, it compiles and uploads, but the serial monitor returns the "cannot read SD."
Now, this really goes against another library that I tried which was the TFT.h Library. That one said that it could read my SD card and went forward with trying to draw the image on the screen but would not, the backlight is all that appears on the screen for both.
My confusion lies in that I cannot seem to pinpoint what the issue is. The screen will display images but connecting the SD card seems to be issue. Thing is, one example says it cannot read it, the other can, and I don't know where to go from here.
I'd like to point out that I tried using the Adafruit_GFX.h and Adafruit_TFTLCD.h libraries but could not find the commands I needed to just print an image from SD card.
Please help, this project is practically finished if I can figure out how to print to screen consistently! I also would rather the easiest way to do so, the MCUFRIEND_kbv.h library's example on how to print to the screen takes up over 70% of program memory and is so complicated that I am certain that I could not replicate such a thing for all the images we have to print to the screen.
Are there any simple functions within TFT.h or any other library that will allow me to just call an image from the SD card? Help!
Attached below is the code that I need to be able to place the images in, the final code for our project, which includes the Nunchuk function. Also, LCD_Trials is what I am using to experiment with the LCD, let me know if there are any issues with that which would prevent the image being rendered. Thanks!
Code.ino (3.77 KB)
LCD_Trials.ino (1.41 KB)