Component: Embed File (File)
Author | Matrix TSL |
Version | 1.0 |
Category | File |
Contents
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. | |
- UINT | Address |
Address range 0 to NumBytesInFile - 1 | |
- BYTE | Return |
GetFileLength
GetFileLength | |
Returns the file size in bytes. | |
- UINT | Return |