I'm trying to use the SD.h library but it doesnt offer much information as you cannot set it to particular pins which is frustrating. I believe it attaches itself to the Serial.h library, however this is attached to pins D0 and D1, which is the USB line.
Ideally, i'd like to have the SD card on pins D10-13, so I can still use the USB port, however since there is no option to choose what the SD.h latches onto I cant put it on a software serial port (that I know of.
I am using the standard example from the SD.h reference, and the SD card is directly hardwired to the Arduino, so seeing my code is meaningless. The question I asked was can you attach the SD card to any pins I decide upon?
And there is a software serial library so yes you can attach hardware to software as I have done with a Xbee to two random pins operating software serial.
It is quite clear that you can assign any receive and transmit pins for software serial. I have done it, tested it, and have it working fine as per the example in the reference. Xbee, hardware, connected to a software serial port. Done.
As per this example, I have an SD card connected to pins 11-13, chip select is on pin10, which you are free to choose any pin you like. This workd fine. Done.
My question: has anyone successfully connected an SD card to any other pins, not just the standard 11-13.