Hello everyone,
I have a brand new Arduino Mega (clone) and I´m trying ti display an image on it. All the examples work fine and display is up and running, however when I try to upload the "showBMP_not_UNO.ino" from the examples, after upload it says Show BMP files on TFT with ID:0x9486 cannot start SD
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.
Please post a schematic. Hand drawn, photographed and posted is fine. Include all pin names/numbers, components, their part numbers and/or values and power supplies.
Alright, I will reply myself here and hopefully this will help somebody later on, I got it working!
Firstly, I found out that Mega has the SPI pins 50-53. I'm not very skilled Arduino developer, but we all learn every day. Mistake #1 - bought a display for Uno as I needed it before Christmas and was ordering it on 21st
The core thing here was that even though I defined the SD_CS pin in a config as pin 10 (which is actually on the original shield correct for this operation), Mega didn't care about that. Once I correctly connected these 4 pins, I got a communication with the CardInfo.ino that is from the original SD library. As I was aware that I have to use the sdFat because of Mega, I needed to somehow find out why the sdFat library doesn´t work for me.
Mistake #2 - you don´t really need sdFat library in order to get this running.
The truth is, even though for the original SD Library CardInfo went fine and I was able to communicate with the SD card, for some reason with the same wiring and connections, the sdFat library just doesn´t work. I can´t connect to the SD card at all.
The thing is - even though you're using MEGA and not UNO, you can use the same file from examples showBMP_kbv_Uno. You just need to define the SD_CS pin and you're good to go! The sdFat library is still dead for me, but I don´t need it anyway.