List file(s)

Description

List all files or specific name file in the flash chip. The result is sending back to the serial port.

Note: This function can't run in commands set.

Usage:

Direct:

"fDIR*" List all files in flash chip. Each file uses 16 bytes: name[11], size[3], first FAT[2].

"fDIRfilename " search if the there is a file in flash chip, if found, then return 14 bytes: name[11],size[3].

Arduino:

void listFiles(void)
void listFile(const char[] filename)

C:

void Digole_listFiles(void)

void Digole_listFile(const char[] filename)

Parameters:

filename

A character array of file name. The maximum length is 11 bytes.

Example (Arduino):

mydisp.listFile("hello.txt");   //find file in flash chip
//if found, and for example the file length is 513 bytes, then the 14 bytes of value on serial port
//'h','e','l','l','o','.','t','x','t',00,00,01,02,00

Changelog

Version Description
V7 function was added.

See Also