Skip to content
Adam Dej edited this page Jan 14, 2014 · 3 revisions

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.

Assets format

The only thing all binary assets have in common is that the first byte denotes the type of the asset.

Asset types

  • Type 0 - 1bit bitmap
  • Type 1 - 1bit font, containing information for ASCII characters ! to ~
  • Type 2 - 1bit font, containing information for ASCII characters - to :
Clone this wiki locally