I know it's possible to hook up multiple SPI devices, but how can one access the second drive from a sketch?
Looking at the SDWebServer.ino example, my doubt is with the
SD.begin(SS); part. If I call
begin() again with the other CS pin, it seems that I would lose a reference to my first volume, or maybe it won't work at all. I would instantiate another
SD instance, but the sketch never seems to instantiate that object, it first appears in
If I copy the lib (sd.h+sd.cpp) and replace all literal instances of
SD2, can I then include and use
SD2 just like the original (provided the different
.begin(pin))? Is there a less hacky way of using two SD cards in ESP8266 Arduino?
In case anyone's wondering, it's for a crypto project where one card will contain one-time-pads of plaintext length and the other contains the XOR'd ciphertext, both are fed by wifi upload, and the max file size must be bigger than SPIFFS, so I really need two SD cards...