16#include "DirectoryFS.h"
22# define SD_MMC_ROOT "."
29class SDMMCFS :
public DirectoryFS {
31 SDMMCFS() : DirectoryFS(
"SD_MMC_ROOT", SD_MMC_ROOT) {}
33 bool setPins(
int clk,
int cmd,
int d0,
int d1 = -1,
int d2 = -1,
int d3 = -1) {
return true; }
35 bool begin(
const char* mountpoint =
"/sdcard",
bool mode1bit =
false,
36 bool format_if_mount_failed =
false,
int sdmmc_frequency = 20000,
37 uint8_t maxOpenFiles = 5) {
41 uint64_t cardSize() {
return totalBytes(); }
bool beginRoot()
Determines the root directory: the environment variable or the default.
Definition DirectoryFS.h:35
ESP32 compatible SD_MMC which is a directory of the computer: SD_MMC.open("/test.txt") opens SD_MMC_R...
Definition SD_MMC.h:29