mirror of
https://github.com/Bodmer/TFT_eSPI.git
synced 2025-08-03 20:54:42 +02:00
Make ESP32 family handle SPIFFS and LittleFS consistently
This commit is contained in:
@@ -135,17 +135,11 @@ SPI3_HOST = 2
|
|||||||
// Call up the SPIFFS (SPI FLASH Filing System) for the anti-aliased fonts
|
// Call up the SPIFFS (SPI FLASH Filing System) for the anti-aliased fonts
|
||||||
#define FS_NO_GLOBALS
|
#define FS_NO_GLOBALS
|
||||||
#include <FS.h>
|
#include <FS.h>
|
||||||
#if defined(CONFIG_IDF_TARGET_ESP32)
|
#include "SPIFFS.h" // ESP32 only
|
||||||
#include "SPIFFS.h" // ESP32 only
|
|
||||||
#else
|
|
||||||
#ifndef SPIFFS
|
|
||||||
#include <LittleFS.h>
|
|
||||||
#define SPIFFS LittleFS
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
#define FONT_FS_AVAILABLE
|
#define FONT_FS_AVAILABLE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Define the DC (TFT Data/Command or Register Select (RS))pin drive code
|
// Define the DC (TFT Data/Command or Register Select (RS))pin drive code
|
||||||
////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
Reference in New Issue
Block a user