forked from espressif/arduino-esp32
Add support for ffat on 4MB ESP32 Dev Module and mhetesp32minikit board. (#2588)
* Update boards.txt Add menu items for ffat on mhetesp32minikit board. * Add partition table. * Added ffat partition for 4MB ESP32 Dev Module. * Added comment about partitioning schemes.
This commit is contained in:
@ -1,6 +1,10 @@
|
||||
#include "FS.h"
|
||||
#include "FFat.h"
|
||||
|
||||
// This file should be compiled with 'Partition Scheme' (in Tools menu)
|
||||
// set to 'Default with ffat' if you have a 4MB ESP32 dev module or
|
||||
// set to '16M Fat' if you have a 16MB ESP32 dev module.
|
||||
|
||||
// You only need to format FFat the first time you run a test
|
||||
#define FORMAT_FFAT true
|
||||
|
||||
@ -160,7 +164,7 @@ void setup(){
|
||||
Serial.println("FFat Mount Failed");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Serial.printf("Total space: %10lu\n", FFat.totalBytes());
|
||||
Serial.printf("Free space: %10lu\n", FFat.freeBytes());
|
||||
listDir(FFat, "/", 0);
|
||||
|
Reference in New Issue
Block a user