implement Nffs format() function
This commit is contained in:
1 parent
ec89ed68bf
commit
c9ac58478c
3 files changed
+26
-1
No files matched your search
@@ -12,6 +12,7 @@
|
||||
any redistribution
|
||||
*********************************************************************/
|
||||
|
||||
#include <bluefruit.h>
|
||||
#include <NewtNffs.h>
|
||||
|
||||
#define FILENAME "/adafruit.txt"
|
||||
@@ -25,6 +26,11 @@ void setup()
|
||||
Serial.begin(115200);
|
||||
Serial.println("Nffs Read Write File Example");
|
||||
|
||||
// Bluefruit module must be initialized for Nffs to work
|
||||
// Since Bluefruit's SOC event handling task is required for flash operation
|
||||
Bluefruit.begin();
|
||||
|
||||
// Initialize Nffs
|
||||
Nffs.begin();
|
||||
|
||||
file.open(FILENAME, FS_ACCESS_READ);
|
||||
|
||||
Reference in new issue
Block a user