Kanji support has recently been added thanks to contributions from RealClearwave.
However, the Kanji module relies on a .txt file in the /font directory. The module reads the data as needed from the flash, and doesn't store the entire file in RAM (which makes sense because the file is fairly large).
However, .txt files can't be simply frozen into the MH firmware (as a .bin file) the same way .py files can be. So, in order for this module to work when frozen, it will need to take an alternative approach when frozen.
This can probably be achieved using MicroHydra's new platform conditional statements, to include different code when frozen.
Simplified example of what I mean:
# mh_if frozen:
# import kanji data from module:
from font import kanji
# mh_else:
# load data on the fly from .txt file
self.font = open("/font/kanji_8x8.txt","r")
# mh_end_if
Kanji support has recently been added thanks to contributions from RealClearwave.
However, the Kanji module relies on a .txt file in the /font directory. The module reads the data as needed from the flash, and doesn't store the entire file in RAM (which makes sense because the file is fairly large).
However, .txt files can't be simply frozen into the MH firmware (as a .bin file) the same way .py files can be. So, in order for this module to work when frozen, it will need to take an alternative approach when frozen.
This can probably be achieved using MicroHydra's new platform conditional statements, to include different code when frozen.
Simplified example of what I mean: