FabGL
ESP32 Display Controller and Graphics Library

◆ mountSDCard()

bool mountSDCard ( bool  formatOnFail,
char const *  mountPath,
size_t  maxFiles = 4,
int  allocationUnitSize = 16 * 1024,
int  MISO = 16,
int  MOSI = 17,
int  CLK = 14,
int  CS = 13 
)
static

Mounts filesystem on SD Card.

Parameters
formatOnFailFormats SD Card when it cannot be mounted.
mountPathMount directory (ex. "/sdcard").
maxFilesNumber of files that can be open at the time (default 4).
allocationUnitSizeAllocation unit size (default 16K).
MISOPin for MISO signal (default 16 for WROOM-32, 2 for PICO-D4).
MOSIPin for MOSI signal (default 17 for WROOM-32, 12 for PICO-D4).
CLKPin for CLK signal (default 14).
CSPin for CS signal (default 13).
Returns
Returns True on success.

Example:

// Mount SD Card
FileBrowser::mountSDCard(false, "/sdcard");

Definition at line 1181 of file fabutils.cpp.