#ifndef ESP_GOOGLE_SHEET_CLIENT_FS_CONFIG_H_ #define ESP_GOOGLE_SHEET_CLIENT_FS_CONFIG_H_ #include #include "mbfs/MB_MCU.h" /** * To use other flash file systems * * LittleFS File system * * #include * #define DEFAULT_FLASH_FS LittleFS //For LitteFS * * * FAT File system * * #include * #define DEFAULT_FLASH_FS FFat //For ESP32 FAT * */ #if defined(ESP32) #include #endif #if defined(ESP32) || defined(ESP8266) #define DEFAULT_FLASH_FS SPIFFS #elif defined(ARDUINO_ARCH_RP2040) && !defined(ARDUINO_NANO_RP2040_CONNECT) #include #define DEFAULT_FLASH_FS LittleFS #endif /** * To use SD card file systems with different hardware interface * e.g. SDMMC hardware bus on the ESP32 * https://github.com/espressif/arduino-esp32/tree/master/libraries/SD#faq * #include #define DEFAULT_SD_FS SD_MMC //For ESP32 SDMMC #define CARD_TYPE_SD_MMC 1 //For ESP32 SDMMC * */ #if defined(ESP32) || defined(ESP8266) #include #define DEFAULT_SD_FS SD #define CARD_TYPE_SD 1 #elif defined(ARDUINO_ARCH_RP2040) && !defined(ARDUINO_NANO_RP2040_CONNECT) // Use SDFS (ESP8266SdFat) instead of SD #include #define DEFAULT_SD_FS SDFS #define CARD_TYPE_SD 1 #endif // For ESP32, format SPIFFS or FFat if mounting failed #ifndef FORMAT_FLASH_IF_MOUNT_FAILED #define FORMAT_FLASH_IF_MOUNT_FAILED 1 #endif /** Use PSRAM for supported ESP32/ESP8266 module */ #if defined(ESP32) || defined(ESP8266) #define ESP_GOOGLE_SHEET_CLIENT_USE_PSRAM #endif // Enable NTP time #define ESP_GOOGLE_SHEET_CLIENT_ENABLE_NTP_TIME /* If not use on-board WiFi */ // #define ESP_GOOGLE_SHEET_CLIENT_DISABLE_ONBOARD_WIFI /* If not use native Ethernet (Ethernet interfaces that supported by SDK) */ // #define ESP_GOOGLE_SHEET_CLIENT_DISABLE_NATIVE_ETHERNET // For ESP8266 ENC28J60 Ethernet module // #define ENABLE_ESP8266_ENC28J60_ETH // For ESP8266 W5100 Ethernet module // #define ENABLE_ESP8266_W5100_ETH // For ESP8266 W5500 Ethernet module // #define ENABLE_ESP8266_W5500_ETH // To use your custom config, create Custom_ESP_Google_Sheet_Client_FS_Config.h in the same folder of this // ESP_Google_Sheet_Client_FS_Config.h file #if __has_include("Custom_ESP_Google_Sheet_Client_FS_Config.h") #include "Custom_ESP_Google_Sheet_Client_FS_Config.h" #endif #endif