From the look of things the ports overlap on the shields so I was wondering if anyone could assist with highlighting which ports to SD card shield uses (I'm not able to determine from schematic on the SD card shield) and also if its possible for me to change the ports required on the shield?
At this stage i am only playing with the "CardInfo" sketch within the arduino software. I am using an Mega 2560.
EDIT - I probably should add, i can see that poirt 4, 11,12,13 are in use but not sure if anything else is in use (ISP ports?)
Regards
Stephen
Pin 10 should be set as an OUTPUT pin, to enable SPI, which involves pins 11, 12, and 13. The chip select pin, to define which SPI device is the active receiver is pin 4., which is the pin to use in the SD.begin() call.
The LCD shield uses pins 4 to 9. Why the moronic piece of crap example software uses pin 13 in the constructor is a mystery. Pin 13 is (fortunately) not connected to the LCD shield.
You'll need to look at the LiquidCrystal library, to see what the second argument is for, to have some idea what to change it to. Yes, you will need to change it so that the instance doesn't diddle with pin 13.
I can still put my SD Card shield in and use it? Or do i need to modify that LCD line?
It's a shield. those pins are fixed by the pcb traces on the keypad shield. If you had a standalone parallel lcd where you could put the wires anywhere you want then yeah you could modify that line but you have a shield and those pin connections are based on
which pins the traces go to on the button shield so unless you can rewire , there is no point in changing the Lcd Constructor pin configuration in that line.
but you have a shield and those pin connections are based on
which pins the traces go to on the button shield so unless you can rewire , there is no point in changing the Lcd Constructor pin configuration in that line.
Have YOU looked at the schematic? There is nothing connected to pin 13.