Tools for working with Bridgetek's FT81x chips.
- Install
pipenv
. - Set up environment: enter repo dir and run
pipenv shell
.
Converts images to bytes for loading into RAM_G
on the chip. Multiple formats are supported, see settings.
- Drop
in.png
in the directory. - Run
python3 generate-bitmap.py
- Script outputs data to
progmem.hpp
.
Converts OTF fonts to bytes for loading into RAM_G
on the chip.
- Drop
font.otf
in the directory. - Run
python3 generate-font.py
- By default, the script generates preview of glyphs in
out.png
and outputs data toprogmem.hpp
.
Tip: you can tweak font by rendering image by setting preview_filename
, applying tweaks, and running script again with image_file
set instead of font_file
.