e z L C D -‐ 4 0 5
|
119
Rev.
© 2016 Earth Computers Tech. Inc.
1.7.43 SD_FIND_FIRST and SD_FIND_NEXT
Description:
Obtain the list of SD files and sub-‐directories (one by one), which match the
specified search pattern.
Supported file systems
: FAT12, FAT16, FAT32
Code:
SD_FIND_FIRST
:
4A
hex,
74
dec
SD_FIND_NEXT
:
4B
hex,
75
dec
Wildcards: ‘*’ and ‘?’ are supported for the ASCII
7
6
5
4
3
2
1
0
Byte 0: Command
Byte 2: First Character of the pattern
Byte 3: Second Character of the pattern
Byte n: Last Character of the folder path
Byte n+1: NULL
7
6
5
4
3
2
1
0
Byte 0: Command
SD_FIND_FIRST gets only the first found file or directory, which matches the search pattern.
Each time, the SD_FIND_NEXT is issued, it finds the next file or directory, which matches the
search pattern specified in the last SD_FIND_FIRST command.
The difference between the above described mechanism and
SD_FILE_LIST
command is that it
obtains the files and directories one by one, while SD_FILE_LIST obtains them all at once.
Note:
SD card has to be formatted in the supported file system.
About the Search Pattern:
·∙ Specifies the path to the SD directory, SD file or group of files and sub-‐directories.
·∙ Wildcards: '*' and '?' are supported
SD_FIND_FIRST
ASCII
ASCII
0
ASCII
Se
ar
ch
P
at
te
rn
(N
ul
l-‐te
rm
in
ate
d
st
rin
g)
SD_FIND_NEXT
Содержание ezLCD-405
Страница 1: ......
Страница 22: ...e z L C D 4 0 5 22 Rev 2016 Earth Computers Tech Inc Figure 2 ezLCD 405 Schematic...
Страница 23: ...e z L C D 4 0 5 23 Rev 2016 Earth Computers Tech Inc 1 3 2 Pin Configuration Figure 3 ezLCD 405 Connectors...
Страница 32: ...e z L C D 4 0 5 32 Rev 2016 Earth Computers Tech Inc...
Страница 52: ...e z L C D 4 0 5 52 Rev 2016 Earth Computers Tech Inc SET_COLOR SET_XY...
Страница 102: ...e z L C D 4 0 5 102 Rev 2016 Earth Computers Tech Inc...
Страница 109: ...e z L C D 4 0 5 109 Rev 2016 Earth Computers Tech Inc...
Страница 118: ...e z L C D 4 0 5 118 Rev 2016 Earth Computers Tech Inc...
Страница 158: ...e z L C D 4 0 5 158 Rev 2016 Earth Computers Tech Inc 10 10 dec y LSB V_LINE 41 hex 110 110 dec...