File tree Expand file tree Collapse file tree 3 files changed +29
-11
lines changed
libraries/Storage/examples Expand file tree Collapse file tree 3 files changed +29
-11
lines changed Original file line number Diff line number Diff line change @@ -42,11 +42,15 @@ void setup() {
42
42
/* list to store all directory in the root */
43
43
std::vector<std::string> dir_list;
44
44
45
+ Serial.println ();
46
+ Serial.println (" ##### TEST QSPI FLASH with FAT FS" );
47
+ Serial.println ();
48
+
45
49
/*
46
50
* MOUNTING SDCARD AS FATFS filesystem
47
51
*/
48
52
49
- Serial.println (" Mounting SDCARD ..." );
53
+ Serial.println (" Mounting QSPI FLASH ..." );
50
54
int err = fs.mount (&block_device);
51
55
if (err) {
52
56
// Reformat if we can't mount the filesystem
@@ -89,6 +93,10 @@ void setup() {
89
93
while (1 );
90
94
}
91
95
96
+ if (dirIndex == 0 ) {
97
+ Serial.println (" Empty SDCARD" );
98
+ }
99
+
92
100
bool found_test_folder = false ;
93
101
94
102
/*
@@ -261,9 +269,7 @@ void setup() {
261
269
Serial.println (file_test_name.c_str ());
262
270
}
263
271
}
264
- if (dirIndex == 0 ) {
265
- Serial.println (" Empty SDCARD" );
266
- }
272
+
267
273
}
268
274
269
275
void loop () {
Original file line number Diff line number Diff line change @@ -43,11 +43,15 @@ void setup() {
43
43
/* list to store all directory in the root */
44
44
std::vector<std::string> dir_list;
45
45
46
+ Serial.println ();
47
+ Serial.println (" ##### TEST QSPI FLASH with FAT FS" );
48
+ Serial.println ();
49
+
46
50
/*
47
51
* MOUNTING SDCARD AS FATFS filesystem
48
52
*/
49
53
50
- Serial.println (" Mounting SDCARD ..." );
54
+ Serial.println (" Mounting QSPI FLASH ..." );
51
55
int err = fs.mount (&block_device);
52
56
if (err) {
53
57
// Reformat if we can't mount the filesystem
@@ -92,6 +96,10 @@ void setup() {
92
96
while (1 );
93
97
}
94
98
99
+ if (dirIndex == 0 ) {
100
+ Serial.println (" Empty SDCARD" );
101
+ }
102
+
95
103
bool found_test_folder = false ;
96
104
97
105
/*
@@ -264,9 +272,7 @@ void setup() {
264
272
Serial.println (file_test_name.c_str ());
265
273
}
266
274
}
267
- if (dirIndex == 0 ) {
268
- Serial.println (" Empty SDCARD" );
269
- }
275
+
270
276
}
271
277
272
278
void loop () {
Original file line number Diff line number Diff line change @@ -42,6 +42,10 @@ void setup() {
42
42
/* list to store all directory in the root */
43
43
std::vector<std::string> dir_list;
44
44
45
+ Serial.println ();
46
+ Serial.println (" ##### TEST SD CARD with FAT FS" );
47
+ Serial.println ();
48
+
45
49
/*
46
50
* MOUNTING SDCARD AS FATFS filesystem
47
51
*/
@@ -89,6 +93,10 @@ void setup() {
89
93
while (1 );
90
94
}
91
95
96
+ if (dirIndex == 0 ) {
97
+ Serial.println (" Empty SDCARD" );
98
+ }
99
+
92
100
bool found_test_folder = false ;
93
101
94
102
/*
@@ -261,9 +269,7 @@ void setup() {
261
269
Serial.println (file_test_name.c_str ());
262
270
}
263
271
}
264
- if (dirIndex == 0 ) {
265
- Serial.println (" Empty SDCARD" );
266
- }
272
+
267
273
}
268
274
269
275
void loop () {
You can’t perform that action at this time.
0 commit comments