Difference between revisions of "Component: File (ESP32 SDMode) (File)"
From Flowcode Help
Jump to navigationJump to search| (2 intermediate revisions by 2 users not shown) | |||
| Line 5: | Line 5: | ||
|- | |- | ||
| width="20%" style="color:gray;" | Version | | width="20%" style="color:gray;" | Version | ||
| − | | | + | | 9.9 |
|- | |- | ||
| width="20%" style="color:gray;" | Category | | width="20%" style="color:gray;" | Category | ||
| Line 14: | Line 14: | ||
==File (ESP32 SDMode) component== | ==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. | 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. | ||
| + | |||
| + | ==Version information== | ||
| + | |||
| + | Library Version, Component Version, Date, Author, Info | ||
| + | 9, 9.0, 04-03-25, MW, Changed tooltips from Not implemented on the RPI to Not implemented on the ESP32 | ||
==Detailed description== | ==Detailed description== | ||
| Line 31: | Line 36: | ||
==Examples== | ==Examples== | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| Line 51: | Line 49: | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ''<span style="color:red;">No additional examples</span>'' | ||
==Macro reference== | ==Macro reference== | ||
| Line 270: | Line 281: | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''MoveToNextFileSector''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''MoveToNextFileSector''' | ||
|- | |- | ||
| − | | colspan="2" | Not | + | | colspan="2" | Not implemented on the ESP32 |
|- | |- | ||
|- | |- | ||
| Line 384: | Line 395: | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadFileLength''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadFileLength''' | ||
|- | |- | ||
| − | | colspan="2" | Not | + | | colspan="2" | Not implemented on the ESP32 |
|- | |- | ||
|- | |- | ||
| Line 556: | Line 567: | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WriteByteToBuffer''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WriteByteToBuffer''' | ||
|- | |- | ||
| − | | colspan="2" | Not | + | | colspan="2" | Not implemented on the ESP32 |
|- | |- | ||
|- | |- | ||
| Line 580: | Line 591: | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WriteFileSector''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WriteFileSector''' | ||
|- | |- | ||
| − | | colspan="2" | Not | + | | colspan="2" | Not implemented on the ESP32 |
|- | |- | ||
|- | |- | ||
| Line 662: | Line 673: | ||
| width="90%" | Sim Root Folder | | width="90%" | Sim Root Folder | ||
|- | |- | ||
| − | | colspan="2" | | + | | colspan="2" | The directory used by the simulation to look for files. |
|} | |} | ||
Latest revision as of 21:16, 27 January 2026
| Author | Matrix Ltd. |
| Version | 9.9 |
| Category | File |
Contents
- 1 File (ESP32 SDMode) component
- 2 Version information
- 3 Detailed description
- 4 Examples
- 5 Macro reference
- 5.1 AppendByteArrayToFile
- 5.2 AppendByteToFile
- 5.3 AppendFloatArrayToFile
- 5.4 AppendINTArrayToFile
- 5.5 AppendLongArrayToFile
- 5.6 AppendStringToFile
- 5.7 CloseFile
- 5.8 CreateFile
- 5.9 DeleteFile
- 5.10 Initialise
- 5.11 MoveToNextFileSector
- 5.12 OpenFile
- 5.13 OpenFolder
- 5.14 ReadByteArrayFromFile
- 5.15 ReadByteFromFile
- 5.16 ReadByteFromIndex
- 5.17 ReadFileLength
- 5.18 ReadFileSize
- 5.19 ReadFloatArrayFromFile
- 5.20 ReadINTArrayFromFile
- 5.21 ReadLongArrayFromFile
- 5.22 ReadStringFromFile
- 5.23 SetFileIndex
- 5.24 Uninitialise
- 5.25 WriteByteToBuffer
- 5.26 WriteFileSector
- 6 Property reference
- 7 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.
Version information
Library Version, Component Version, Date, Author, Info 9, 9.0, 04-03-25, MW, Changed tooltips from Not implemented on the RPI to Not implemented on the ESP32
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 implemented on the ESP32 | |
| 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 implemented on the ESP32 | |
| 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 implemented on the ESP32 | |
| Address | |
| Data | |
| Return | |
WriteFileSector
| WriteFileSector | |
| Not implemented on the ESP32 | |
| 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