34template<
typename Key,
typename Value,
size_t N>
class FixedMap;
45 bool begin(FsImplPtr platform_filesystem);
49 FileHandlePtr
openRead(
const char *path);
50 Video openVideo(
const char *path,
size_t pixelsPerFrame,
float fps = 30.0f,
size_t nFrameHistory = 0);
55 void close(FileHandlePtr file);
70 virtual size_t size()
const = 0;
71 virtual size_t read(uint8_t *dst,
size_t bytesToRead) = 0;
72 virtual size_t pos()
const = 0;
73 virtual const char*
path()
const = 0;
80 return read((uint8_t*)dst, n * 3) / 3;
89 virtual void accept(
const char* path) = 0;
95 virtual void end() = 0;
96 virtual void close(FileHandlePtr file) = 0;
97 virtual FileHandlePtr
openRead(
const char *path) = 0;
size_t readCRGB(CRGB *dst, size_t n)
virtual bool seek(size_t pos)=0
virtual size_t size() const =0
virtual bool available() const =0
virtual size_t bytesLeft() const
virtual size_t read(uint8_t *dst, size_t bytesToRead)=0
virtual const char * path() const =0
virtual bool valid() const =0
virtual size_t pos() const =0
FileHandlePtr openRead(const char *path)
Video openVideo(const char *path, size_t pixelsPerFrame, float fps=30.0f, size_t nFrameHistory=0)
bool readScreenMap(const char *path, const char *name, ScreenMap *out, Str *error=nullptr)
bool readScreenMaps(const char *path, FixedMap< Str, ScreenMap, 16 > *out, Str *error=nullptr)
bool readText(const char *path, Str *out)
bool readJson(const char *path, JsonDocument *doc)
bool begin(FsImplPtr platform_filesystem)
void close(FileHandlePtr file)
virtual void close(FileHandlePtr file)=0
virtual FileHandlePtr openRead(const char *path)=0
virtual bool ls(Visitor &visitor)
#define FASTLED_SMART_PTR(type)
#define FASTLED_NAMESPACE_END
Implements the FastLED namespace macros.
FsImplPtr make_sdcard_filesystem(int cs_pin)
Implements a simple red square effect for 2D LED grids.
Representation of an RGB pixel (Red, Green, Blue)
virtual void accept(const char *path)=0