#ifndef _SDCARD_H #define _SDCARD_H #include "Arduino.h" #include "FS.h" #include "SD.h" #include "SPI.h" #include "datasource.h" class SDCard: public DataSource { public: SDCard(); void mount(); void umount(); static File open(const char*); static void close(File); static size_t read(File file, unsigned char* buffer, int length); static bool available(File); static constexpr fs::FS &fs = SD; private: uint8_t cardType; uint64_t cardSize; }; #endif /* _SDCARD_H */