// set up SD card
SPI.begin(SD_CLK,SD_MISO,SD_MOSI,SD_CS);
if (!SD.begin()) {Serial.println("SD CARD mount fail. :( ");}
else {Serial.println("SD CARD mount success! :) ");}
However, I noticed that SD.begin and SPI.begin both only take without parameters. I.e. adding the SD_CLK, etc. values results in a compile error, but without parameters (i.e. SD.begin() and SPI.begin() ), it can compile and run. The problem with that is that I get an SD card mount fail. Full error is:
Both classes have begin functions with parameters. But all parameters are provided with default values. This means, when the function is called without parameters, the default values are used.