Hi PaulS,
Thanks, for your feedback. But I think I still have not gotten it.
I want to talk to the SD card, hence pin 4 should be HIGH? I changed the sketch accordingly:
#include <SD.h>
#include <SPI.h>
const int sdpin = 4;
const int ethpin = 10;
void setup()
{
Serial.begin(9600);
pinMode(ethpin, OUTPUT);
digitalWrite(sdpin, HIGH);
Serial.print("Trying SD card ... ");
if (!SD.begin(sdpin)) {
Serial.println("bad luck.");
} else {
Serial.println("job done.");
}
}
void loop() {
}
Still, It did not work. I also tried
digitalWrite(ethpin, HIGH) instead of digitalWrite(sdpin, HIGH)
Both came back with the same result.
Christoph