33template <
typename Key,
typename Value,
size_t N>
class FixedMap;
41 bool begin(FsImplPtr platform_filesystem);
48 openVideo(
const char *path,
size_t pixelsPerFrame,
float fps = 30.0f,
49 size_t nFrameHistory = 0);
53 Str *error =
nullptr);
55 Str *error =
nullptr);
56 void close(FileHandlePtr file);
69 virtual size_t size()
const = 0;
70 virtual size_t read(uint8_t *dst,
size_t bytesToRead) = 0;
71 virtual size_t pos()
const = 0;
72 virtual const char *
path()
const = 0;
79 return read((uint8_t *)dst, n * 3) / 3;
88 virtual void accept(
const char *path) = 0;
94 virtual void end() = 0;
95 virtual void close(FileHandlePtr file) = 0;
96 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_NAMESPACE_END
Implements the FastLED namespace macros.
FsImplPtr make_sdcard_filesystem(int cs_pin)
Implements a simple red square effect for 2D LED grids.
#define FASTLED_SMART_PTR(type)
Representation of an RGB pixel (Red, Green, Blue)
virtual void accept(const char *path)=0