I tried modifying the code from Adafruit's SD example but can't get it to read right... Can someone shed a bit of light on how to do this?
notouch.txt had "300" on the first line, then I tried "3" and added a multipier in the code but it still doesn't work.
- Code: Select all
// re-open the file for reading:
myFile = SD.open("notouch.txt");
// read from the file until there's nothing else in it:
while (myFile.available()) {
interval = myFile.read();
}
SYNC_INTERVAL = interval * 10000;
// Serial.write(myFile.read());
// close the file:
myFile.close();

