as said I couldn't use the SD lib from the package/shield in Arduino 1.x
I installed the Arduino 1.0.2. If I upload the SD-File-example it cannot initialize the SD card. If I exchange the lcd shield w/ the ethernet/microSD shield the the SD-File-example works. So my microSD at least has the correct format
I compared the Arduino 1.0.2 SD lib with the one from the LCD shield.
The lib in 1.0.2 just seems updated (Arduino.h, size_t instead of void ...) and some new functions (multiple files ..).
I would have expected maybe different Pinout but Sd2PinMap.h. It's the same except a section teensy/leonardo - this shouldn't matter.
the following seems to fail:
Serial.print("Initializing SD card...");
// On the Ethernet Shield, CS is pin 4. It's set as an output by default.
// Note that even if it's not used as the CS pin, the hardware SS pin
// (10 on most Arduino boards, 53 on the Mega) must be left as an output
// or the SD library functions will not work.
pinMode(10, OUTPUT);
if (!SD.begin(4)) {
Serial.println("initialization failed!");
return;
}
Serial.println("initialization done.");
How I said this works with the ethernet shield. But on the lcd shield pin 4 is connected tio the lcd and not to the sd card ...
ps: i have two lcd shields and two different arduinos. On one the graphic demo seems to go white screen after a while. Somewhere on google I read about a Problem with another LCD that mabe the backlight takes to much power and the CPU goes crazy. So Arduino should not just be powered with USB.