Commit 43ba3028 authored by Patrick's avatar Patrick

EOD: sd read-write clarifications

parent 697f9e26
......@@ -67,7 +67,8 @@ void setup()
Serial.println("test.txt contains:");
// read from the file until there's nothing else in it:
while (myFile.available()) {
Serial.write(myFile.read());
char c = myFile.read();
Serial.write(c);
}
// then close the file:
myFile.close();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment