Alight guys, I need some help here. I am working in unfamiliar territory and not a strong programmer. Several days spent trying to figure this out, maybe someone with more skill can give me assist.
I have an Arduino Mega 2560 and a 3.5 inch 320x480 tft LCD shield.Display link
I was able to easily get the display working. So I am able to draw text, colors, lines, ect. The problem is I want to display a Bitmap file first, use that as my background and change text on top of that. And drawing bitmaps is where I’m having trouble. I have a few files so they are stored on the SD card.
Now this particular shield has the SD card pins to 10,11,12,13 which works on my uno but not this MEGA because the SPI pins are somewhere else. I need the pins, MEGA it is. So I’m using SoftwareSPI, which works! I have included the code that reads the root directory on the SD card and draws each bitmap one after the next, I can do this successfully.
With my limited programming experience I can only start by trying to modify example script on this complex stuff. This example script i am working with has way more than I need, but thinning out tasks that are not things I need just end up with errors. I just need to load one image of my choice by defining a bitmap in a variable. My intention was to package this up in a function and call it with a “bitmap.bmp” variable to load on the display.
tried posing code, it’s too long so I’m it’s attached? Im using the MCUFriend_kbv library Github specifically the showBMP_not_Uno example.
Thanks in advance for any help.
showBMP_not_Uno.ino (9.79 KB)