File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 5
5
----
6
6
7
7
* Added ` measureJson() ` to the ` ArduinoJson ` namespace (PR #1069 by @nomis )
8
+ * Fixed example ` JsonConfigFile.ino ` for ESP8266
8
9
9
10
v6.11.3 (2019-07-22)
10
11
-------
Original file line number Diff line number Diff line change 11
11
// "port": 2731
12
12
// }
13
13
//
14
+ // To run this program, you need an SD card connected to the SPI bus as follows:
15
+ // * MOSI <-> pin 11
16
+ // * MISO <-> pin 12
17
+ // * CLK <-> pin 13
18
+ // * CS <-> pin 4
19
+ //
14
20
// https://arduinojson.org/v6/example/config/
15
21
16
22
#include < ArduinoJson.h>
@@ -111,7 +117,8 @@ void setup() {
111
117
while (!Serial) continue ;
112
118
113
119
// Initialize SD library
114
- while (!SD.begin ()) {
120
+ const int chipSelect = 4 ;
121
+ while (!SD.begin (chipSelect)) {
115
122
Serial.println (F (" Failed to initialize SD library" ));
116
123
delay (1000 );
117
124
}
You can’t perform that action at this time.
0 commit comments