Difference between revisions of "Component: Embed File (File)"
Line 17: | Line 17: | ||
==Component Source Code== | ==Component Source Code== | ||
− | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/ | + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_EmbedFile.fcfx FC_Comp_Source_EmbedFile.fcfx] |
− | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/ | + | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_EmbedFile.fcfx FC_Comp_Source_EmbedFile.fcfx] |
==Detailed description== | ==Detailed description== | ||
Line 89: | Line 89: | ||
[[File:EmbedFile.jpg]] | [[File:EmbedFile.jpg]] | ||
+ | |||
+ | |||
Latest revision as of 13:10, 7 February 2023
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. | |
![]() |
Address |
Address range 0 to NumBytesInFile - 1 | |
![]() |
Return |
GetFileLength
![]() |
GetFileLength |
Returns the file size in bytes. | |
![]() |
Return |