made ultralcd compatible with folders.
This commit is contained in:
parent
cd2268f10a
commit
b21d5193f2
4 changed files with 366 additions and 222 deletions
|
|
@ -28,7 +28,8 @@ public:
|
|||
|
||||
|
||||
void ls();
|
||||
|
||||
void chdir(const char * relpath);
|
||||
void updir();
|
||||
|
||||
inline bool eof() { return sdpos>=filesize ;};
|
||||
inline int16_t get() { sdpos = file.curPosition();return (int16_t)file.read();};
|
||||
|
|
@ -40,8 +41,9 @@ public:
|
|||
bool sdprinting ;
|
||||
bool cardOK ;
|
||||
char filename[11];
|
||||
bool filenameIsDir;
|
||||
private:
|
||||
SdFile root,*curDir;
|
||||
SdFile root,*curDir,workDir,workDirParent,workDirParentParent;
|
||||
Sd2Card card;
|
||||
SdVolume volume;
|
||||
SdFile file;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue