Component: File (ESP32 SDMode) (File)
From Flowcode Help
Jump to navigationJump to searchAuthor | Matrix Ltd. |
Version | 2.7 |
Category | File |
Contents
- 1 File (ESP32 SDMode) component
- 2 Detailed description
- 3 Examples
- 4 Macro reference
- 4.1 AppendByteArrayToFile
- 4.2 AppendByteToFile
- 4.3 AppendFloatArrayToFile
- 4.4 AppendINTArrayToFile
- 4.5 AppendLongArrayToFile
- 4.6 AppendStringToFile
- 4.7 CloseFile
- 4.8 CreateFile
- 4.9 DeleteFile
- 4.10 Initialise
- 4.11 MoveToNextFileSector
- 4.12 OpenFile
- 4.13 OpenFolder
- 4.14 ReadByteArrayFromFile
- 4.15 ReadByteFromFile
- 4.16 ReadByteFromIndex
- 4.17 ReadFileLength
- 4.18 ReadFileSize
- 4.19 ReadFloatArrayFromFile
- 4.20 ReadINTArrayFromFile
- 4.21 ReadLongArrayFromFile
- 4.22 ReadStringFromFile
- 4.23 SetFileIndex
- 4.24 Uninitialise
- 4.25 WriteByteToBuffer
- 4.26 WriteFileSector
- 5 Property reference
- 6 Component Source Code
File (ESP32 SDMode) component
File component allowing access to read and write files on an SD card using the ESP32 SD Mode IO allowing for high speed data transfer using 1-bit or 4-bit SD access.
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
AppendByteArrayToFile
![]() |
AppendByteArrayToFile |
![]() |
Data |
![]() |
Length |
![]() |
Return |
AppendByteToFile
![]() |
AppendByteToFile |
![]() |
Data |
![]() |
Return |
AppendFloatArrayToFile
AppendINTArrayToFile
AppendLongArrayToFile
AppendStringToFile
![]() |
AppendStringToFile |
![]() |
Data_String |
![]() |
Return |
CloseFile
![]() |
CloseFile |
![]() |
Return |
CreateFile
![]() |
CreateFile |
![]() |
Filename |
![]() |
Return |
DeleteFile
![]() |
DeleteFile |
![]() |
Filename |
![]() |
Return |
Initialise
![]() |
Initialise |
Starts up the SD card interface and checks to see if a card is compatible. Returns: 0=OK, 255=No Card, 254=File System Fail | |
![]() |
Return |
MoveToNextFileSector
![]() |
MoveToNextFileSector |
Not currently implemented on the RPI | |
![]() |
ForceNextSector |
![]() |
Return |
OpenFile
OpenFolder
![]() |
OpenFolder |
![]() |
Folder_Name |
![]() |
Return |
ReadByteArrayFromFile
![]() |
ReadByteArrayFromFile |
Reads a binary byte array from the currently open file. Auto increments the position in the file. Returns the number of values read. | |
![]() |
Data |
![]() |
Length |
![]() |
Return |
ReadByteFromFile
ReadByteFromIndex
![]() |
ReadByteFromIndex |
Reads a byte of data from the local sector buffer. Return = Data byte read from the local sector buffer. | |
![]() |
Address |
![]() |
Return |
ReadFileLength
![]() |
ReadFileLength |
Not currently implemented on the RPI | |
![]() |
Return |
ReadFileSize
![]() |
ReadFileSize |
Reads the entire size of the current file in bytes. | |
![]() |
Return |
ReadFloatArrayFromFile
ReadINTArrayFromFile
ReadLongArrayFromFile
ReadStringFromFile
SetFileIndex
![]() |
SetFileIndex |
![]() |
File_Index |
Range: 0 to 4 | |
![]() |
Return |
Uninitialise
![]() |
Uninitialise |
Terminates connection to the SD card, unmounts the SD card and disabled the SD peripheral. | |
![]() |
Return |
WriteByteToBuffer
![]() |
WriteByteToBuffer |
Not currently implemented on the RPI | |
![]() |
Address |
![]() |
Data |
![]() |
Return |
WriteFileSector
![]() |
WriteFileSector |
Not currently implemented on the RPI | |
![]() |
Return |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_File_ESP32_SDMode.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_File_ESP32_SDMode.fcfx