|
|
@@ -11,6 +11,12 @@
|
|
|
// "port": 2731
|
|
|
// }
|
|
|
//
|
|
|
+// To run this program, you need an SD card connected to the SPI bus as follows:
|
|
|
+// * MOSI <-> pin 11
|
|
|
+// * MISO <-> pin 12
|
|
|
+// * CLK <-> pin 13
|
|
|
+// * CS <-> pin 4
|
|
|
+//
|
|
|
// https://arduinojson.org/v6/example/config/
|
|
|
|
|
|
#include <ArduinoJson.h>
|
|
|
@@ -111,7 +117,8 @@ void setup() {
|
|
|
while (!Serial) continue;
|
|
|
|
|
|
// Initialize SD library
|
|
|
- while (!SD.begin()) {
|
|
|
+ const int chipSelect = 4;
|
|
|
+ while (!SD.begin(chipSelect)) {
|
|
|
Serial.println(F("Failed to initialize SD library"));
|
|
|
delay(1000);
|
|
|
}
|