-
Notifications
You must be signed in to change notification settings - Fork 0
Binary assets
This library uses binary assets in its various functions, most notably for drawing bitmaps and text. You can generate your assets with the conversion script in the utils/
folder.
Functions using those binary assets retrieve them using the function read_byte(const uint8_t *address)
. You can implement this functions, which means you can save those binary assets wherever you want, be it a program flash in MCUs capable of reading it, EEPROM, or any other external storage. Usually functions using those assets also have a parameter const uint8_t *asset
, which is the address of the first byte of the asset. Addresses of bytes in the assets will be calculated from this parameter and passed to the read_byte()
function.
The only thing all binary assets have in common is that the first byte denotes the type of the asset.