update SdFat v2 compatible
- use FatVolume to replace FatFileSystem - use File32 to replace File
This commit is contained in:
parent
fc8a3d43d4
commit
90871c298f
4 changed files with 5 additions and 5 deletions
|
|
@ -214,7 +214,7 @@ void Adafruit_Image::draw(Adafruit_SPITFT &tft, int16_t x, int16_t y) {
|
|||
often be in pre-setup() declaration, but DOES need initializing
|
||||
before any of the image loading or size functions are called!
|
||||
*/
|
||||
Adafruit_ImageReader::Adafruit_ImageReader(FatFileSystem &fs) { filesys = &fs; }
|
||||
Adafruit_ImageReader::Adafruit_ImageReader(FatVolume &fs) { filesys = &fs; }
|
||||
|
||||
/*!
|
||||
@brief Destructor.
|
||||
|
|
|
|||
|
|
@ -103,8 +103,8 @@ public:
|
|||
void printStatus(ImageReturnCode stat, Stream &stream = Serial);
|
||||
|
||||
protected:
|
||||
FatFileSystem *filesys; ///< FAT FileSystem Object
|
||||
File file; ///< Current Open file
|
||||
FatVolume *filesys; ///< FAT FileSystem Object
|
||||
File32 file; ///< Current Open file
|
||||
ImageReturnCode coreBMP(const char *filename, Adafruit_SPITFT *tft,
|
||||
uint16_t *dest, int16_t x, int16_t y,
|
||||
Adafruit_Image *img, boolean transact);
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ void Adafruit_Image_EPD::draw(Adafruit_EPD &epd, int16_t x, int16_t y) {
|
|||
often be in pre-setup() declaration, but DOES need initializing
|
||||
before any of the image loading or size functions are called!
|
||||
*/
|
||||
Adafruit_ImageReader_EPD::Adafruit_ImageReader_EPD(FatFileSystem &fs)
|
||||
Adafruit_ImageReader_EPD::Adafruit_ImageReader_EPD(FatVolume &fs)
|
||||
: Adafruit_ImageReader(fs) {}
|
||||
|
||||
/*!
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ protected:
|
|||
*/
|
||||
class Adafruit_ImageReader_EPD : public Adafruit_ImageReader {
|
||||
public:
|
||||
Adafruit_ImageReader_EPD(FatFileSystem &fs);
|
||||
Adafruit_ImageReader_EPD(FatVolume &fs);
|
||||
ImageReturnCode drawBMP(char *filename, Adafruit_EPD &epd, int16_t x,
|
||||
int16_t y, boolean transact = true);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue