Answer the question
In order to leave comments, you need to log in
Arduino. How to write data to an array from an SD card?
The bottom line is this, it turns out to write data to a memory card for temporary storage:
File dataFile = SD.open("datalog.txt", FILE_WRITE);
if (dataFile) {
dataFile.println(dataString);
dataFile.close(); }
6, 233, 453, 323, 676, 213, 673
int mass[РАЗМЕР ПОЛУЧАЕТСЯ СЧИТЫВАЕМ ПЕРВОГО ЭЛЕМЕНТА МАССИВА С КАРТЫ];
myFile = SD.open("test.txt");
if (myFile) {
Serial.println("test.txt:");
while (myFile.available()) {
Serial.write(myFile.read());
}
myFile.close();
Answer the question
In order to leave comments, you need to log in
You can use sscanf() . Read a string from the port, then parse it into numbers.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question