Hi everyone. Tried various searches and found a couple of threads that were close to my situation, but not quite.
The library is the SD library that comes with the Arduino IDE (1.0.1).
I have a system with an Arduino MEGA controlling all sorts of things. The instructions come from a text file on an SD card that the controller reads when I push a button. But, once I have completed one set of instructions, I have to eject the card and go to my computer with it to rewrite new instructions on it. Then I'll return to my Arduino, insert the card and press that button to get it going again. Arduino will not (and can not) reset in between.
But, the library tutorials don't say a word on what I should do in this kind of situation, the usual instructions just assume the card is mounted till power down.
So, when I press the button to activate reading from the card, should I always call SD.begin() to initialize the inserted card?
All I know is that the opened file have to be closed before ejecting, but as there is no SD.eject() to deinitialize the card I had to ask this.
Thank you for you time.