Component: Embed File (File): Difference between revisions
No edit summary |
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 104: | Line 104: | ||
===GetFileArray=== | ===GetFileArray=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetFileArray''' | ||
|- | |- | ||
| colspan="2" | Reads a number of bytes from the file from the specified start address. | | colspan="2" | Reads a number of bytes from the file from the specified start address. | ||
| Line 133: | Line 133: | ||
===GetFileByte=== | ===GetFileByte=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetFileByte''' | ||
|- | |- | ||
| colspan="2" | Reads a single byte from the file at the specified address. | | colspan="2" | Reads a single byte from the file at the specified address. | ||
| Line 152: | Line 152: | ||
===GetFileLength=== | ===GetFileLength=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetFileLength''' | ||
|- | |- | ||
| colspan="2" | Returns the file size in bytes. | | colspan="2" | Returns the file size in bytes. | ||
| Line 167: | Line 167: | ||
==Property reference== | ==Property reference== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
Latest revision as of 14:22, 13 July 2026
| Author | Matrix TSL |
| Version | 1.0 |
| Category | File |
Embed File component
A component to simplify the process of embedding files into ROM. Stores the file inside a ROM look up table.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_EmbedFile.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_EmbedFile.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Basic example program which embeds a text file into the microcontrollers ROM memory and then prints the file out to a LCD display.
EmbedFileExample
Text file to go with the example, must be placed into the same directory as the Flowcode file.
Here is an archive which packages the example and text file together for you.
The file is selected using the File component property.
Clicking the small arrow to the right of the property and selecting Browse allows you to select a file using a Windows file explorer.
Macro reference
GetFileArray
GetFileByte
| GetFileByte | |
| Reads a single byte from the file at the specified address. | |
| Address | |
| Address range 0 to NumBytesInFile - 1 | |
| Return | |
GetFileLength
| GetFileLength | |
| Returns the file size in bytes. | |
| Return | |
