SD pin change?

Recently, I got SD card shield and have been playing around with it. It uses pins 10-13, and so does the library. I am planning on getting a different shield, and using it along side with it, but it uses pins 8-13.

So, here is my question: If I get an external SD card, and make it so the pins are connected to pins, say 4-7, would I be able to change the SD library to be able to read and write from the SD card?


I believe all SD cards use pins 11,12,13, being for MOSI,MISO and clock. I understand pin 10 must always be left as an output, even if it is not used by the SD. Your description of your current shield implies that pin 10 is used and thus it is used to select the SD.

The first thing you need to do check the pins on the new shield. Is it 8,11,12, 13, or is it really 8 to 13? If the latter, what are pins 9 and 10 used for? Pin 8 is very likely for select "CS". Have a look at the SD ReadWrite example in the IDE, I think it says it all. Note that CS therein is pin 4, which I believe is standard. It seems to me that all you need do is nominate the different CS pin.

Well, I checked the documentation on the site, and here is what I'm getting:

And I know that I can change the pin of one of the SD's.

Not very pertinent to this subject!