ESP32-HUB75-MatrixPanel-DMA/examples/AnimatedGIF/FilenameFunctions.h
2018-10-25 23:49:41 +01:00

21 lines
591 B
C

#ifndef FILENAME_FUNCTIONS_H
#define FILENAME_FUNCTIONS_H
#include "FS.h" // for the 'File' class
#include <SPIFFS.h>
#define FILESYSTEM SPIFFS
#define DBG_OUTPUT_PORT Serial
int enumerateGIFFiles(const char *directoryName, boolean displayFilenames);
void getGIFFilenameByIndex(const char *directoryName, int index, char *pnBuffer);
int openGifFilenameByIndex(const char *directoryName, int index);
bool fileSeekCallback(unsigned long position);
unsigned long filePositionCallback(void);
int fileReadCallback(void);
int fileReadBlockCallback(void * buffer, int numberOfBytes);
#endif