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:
Cellie
2019-04-09 21:11:17 +02:00
committed by Me No Dev
parent 8e8c5035ea
commit 4930853edb
3 changed files with 18 additions and 3 deletions

View File

@ -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);