mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 08:06:46 +01:00
When an SD Card is available it is the more interesing metric in terms of space usage. We are therefore using it here. Signed-off-by: Mimoja <git@mimoja.de>
38 lines
511 B
C++
38 lines
511 B
C++
#ifndef _DYN_STORAGE_H_
|
|
#define _DYN_STORAGE_H_
|
|
|
|
#include "FS.h"
|
|
|
|
#ifdef HAS_SDCARD
|
|
#ifndef SD_CARD_SS
|
|
#error SD_CARD_SS UNDEFINED
|
|
#endif
|
|
|
|
#ifndef SD_CARD_CLK
|
|
#define SD_CARD_CLK 18
|
|
#endif
|
|
|
|
#ifndef SD_CARD_MISO
|
|
#define SD_CARD_MISO 19
|
|
#endif
|
|
|
|
#ifndef SD_CARD_MOSI
|
|
#define SD_CARD_MOSI 23
|
|
#endif
|
|
#endif
|
|
|
|
class DynStorage {
|
|
public:
|
|
DynStorage();
|
|
void begin();
|
|
void listFiles();
|
|
size_t freeSpace();
|
|
|
|
private:
|
|
bool isInited;
|
|
};
|
|
|
|
extern DynStorage Storage;
|
|
extern fs::FS *contentFS;
|
|
|
|
#endif |