Skip to content

Commit

Permalink
changed
Browse files Browse the repository at this point in the history
  • Loading branch information
PrawiraGenestonlia committed Oct 10, 2018
1 parent b878e1a commit 59aa735
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions CnDH_v2/CnDH_v2.ino
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,24 @@ void loop() {
// if the file didn't open, print an error:
Serial.println("error opening test.txt");
}

digitalWrite(A1,LOW);

myFile = SD.open("10102018.txt");
if (myFile) {
Serial.println("test.txt:");

// read from the file until there's nothing else in it:
while (myFile.available()) {
Serial.write(myFile.read());
}
// close the file:
myFile.close();
} else {
// if the file didn't open, print an error:
Serial.println("error opening test.txt");
}

}

void update_output() {
Expand Down

0 comments on commit 59aa735

Please sign in to comment.