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