Difference between revisions of "Component: Embed File (Storage)"
From Flowcode Help
Jump to navigationJump to searchLine 20: | Line 20: | ||
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
Line 32: | Line 34: | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
Line 118: | Line 122: | ||
|- | |- | ||
| colspan="2" | Number of bytes available in the target device ROM memory | | colspan="2" | Number of bytes available in the target device ROM memory | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} |
Latest revision as of 17:24, 9 November 2022
Author | Matrix TSL |
Version | 1.0 |
Category | Storage |
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 Pack
STORAGE
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.
Downloadable macro reference
![]() |
GetFileByte |
Reads a single byte from the file at the specified address. | |
![]() |
Address |
Address range 0 to NumBytesInFile - 1 | |
![]() |
Return |
![]() |
GetFileLength |
Returns the file size in bytes. | |
![]() |
Return |