Bonjour ,
I have dynamicly loaded font and four modules.
I load this font in every module and … no enought RAM memory (ESP32 PSRAM board).
Is it possible to shared my loaded font with modules ?
Thanks for help
Micropython
Bonjour ,
I have dynamicly loaded font and four modules.
I load this font in every module and … no enought RAM memory (ESP32 PSRAM board).
Is it possible to shared my loaded font with modules ?
Thanks for help
Micropython
define police.py
import fs_driver
import lvgl as lv
lv.init()
fs_drv = lv.fs_drv_t()
fs_driver.fs_register(fs_drv, 'S')
font_montserrat_22 = lv.font_load("S:/font/montserrat-22.fnt")
then in each module
import police as p
...
label_l_style.set_text_font(lv.STATE.DEFAULT,p.font_montserrat_22)