Repository navigation
Releases
Releases · Taoxuan-168/Maix_LVGL
v0.1.1
maix_lvgl 0.1.1
Fixes
- MaixCAM/Pro refresh performance (#1): the display driver now selects RGB888/FMT_BGR888 on RISC-V and ARGB8888/FMT_BGRA8888 on MaixCAM2 automatically. The flush path uses image.from_bytes(..., copy=False) to avoid one extra full-frame copy, and lv.init(..., color_format=..., max_fps=...) / driver.set_max_fps() are available.
- FreeType glyph-cache hang (#2): backported LVGL 9.2.0 per-node face_lock, serializing FT_Face access from the render thread. Verified on MaixCAM2 with 10/10 stress runs.
Assets
- MaixCAM2: cp313 aarch64 manylinux2014
- MaixCAM: cp311 riscv64 musllinux
- Linux x86_64: cp313 manylinux_2_28 and linux_x86_64
- Windows: cp313 win_amd64
0.1.1 fixes (2026-11)
- MaixCAM/Pro refresh performance (#1): the display driver now selects
RGB888/FMT_BGR888on RISC-V automatically (MaixCAM/Pro VO rejects
BGRA8888) and keepsARGB8888/FMT_BGRA8888on MaixCAM2._flush()uses
image.from_bytes(..., copy=False), avoiding one extra full-frame copy per
refresh.lv.init(..., color_format=..., max_fps=...)and
driver.set_max_fps()allow explicit control. - FreeType glyph-cache hang (#2): backported LVGL 9.2.0's per-node
face_lockintotools/patch_lvgl.py, serializingFT_Faceaccess from
the LVGL render thread. Verified on MaixCAM2 with 10/10 stress runs. - Version bumped to 0.1.1.
Verified
- Wheel built through MaixCDK's
project.py, installed on MaixCAM2
(MaixPy 4.12.5) from insidemaix_lvgl/; 640×480 BGRA8888 rendering
confirmed by screenshot. - Touch indev: 25 read callbacks in 50 timer-handler passes; manual
indev.read()also wired correctly. - Earlier builds of the same backend: 74 consecutive
lv.EVENT.CLICKED
hits, cleanlv.deinit(). - Desktop Linux: built in
manylinux_2_28(glibc 2.28), installed in WSL
with Python 3.13;lv.init(800, 600)created an 800×600 SDL window and ran
about 290 frames in 3 s. - Windows:
lvgl.cp313-win_amd64.pydcross-compiled with mingw-w64, links
python313.dllandSDL2.dll, exportsPyInit_lvgl; not run on Windows
hardware yet. - 0.1.1 on MaixCAM2: FreeType stress test passed 10/10 runs (3 sizes,
Chinese labels); 640×480 ARGB8888 selftest screenshot correct.
v0.1.0
LVGL 9.1.0 bindings for MaixPy on MaixCAM2, built as a standard MaixCDK project.
- Wheel:
maix_lvgl-0.1.0-cp313-cp313-manylinux2014_aarch64.whl - Install:
python3 -m pip install maix_lvgl-0.1.0-cp313-cp313-manylinux2014_aarch64.whl - Requires MaixPy >= 4.12 on MaixCAM2 (CPython 3.13, aarch64)
- LVGL is downloaded and compiled by MaixCDK; the binding is generated with
PyDevices/omnipython-lvgl. - Rendering and touch input verified on MaixCAM2 (640x480 BGRA8888).
2026-11 binding fixes
- Fixed menu page-title receiver, image decoder/scale section bindings
- Fixed event callback removal, array arguments and enum exports
- Added widget support for user_data/set_var/subject pointers
- Patched LVGL 9.1.0 observer and canvas.copy_buf defects
- Added tests and examples/showcase.py
2026-11 FreeType and clean builds
- LVGL FreeType enabled and linked (loads device OTF fonts such as
/maixapp/share/font/SourceHanSansCN-Regular.otf) - tools/patch_maixcdk.py also adds CMake 4 compatibility for freetype
- Verified a clean clone -> bdist_wheel build and CJK rendering
MaixCAM wheel (untested)
- maix_lvgl-0.1.0-cp311-cp311-linux_riscv64.whl
- RISC-V 64 (rv64), Python 3.11, built successfully
- Not tested on MaixCAM hardware; only the MaixCAM2 build was verified.
Binding fixes (2026-11)
The binding generator and runtime were fixed after an API sweep on MaixCAM2:
menu_page.set_page_title()/set_page_title_static()(previously bound to
menuand freed a bogus pointer).image_decoder_t.delete(),scale_section_t.set_range(),
image_src_get_type(),image_decoder_create(),image_cache_resize(),
image_header_cache_resize(),image_cache_drop()and
canvas_buf_size()are now module-level functions where the C API is not a
receiver method.lv.ANIM_ENABLE,lv.SCREEN_LOAD_ANIMandlv.SYMBOLare exported.anim_set_exec_cb(anim, cb)is provided at themaix_lvglmodule level
(LVGL'slv_anim_set_exec_cbhas no user_data slot, so the raw binding is
private). The callback is called ascb(anim, value); use
anim.set_custom_exec_cb()for the same behaviour directly.grid_dsc_arrayaccepts lists as well asarray.array.remove_event_cb()/remove_event_cb_with_user_data()now match the
trampoline used byadd_event_cb.observer.remove()no longer leaves a danglingLV_EVENT_DELETEhook
(LVGL 9.1.0 upstream fix, applied bytools/patch_lvgl.py).canvas.copy_buf()no longer hangs on same-format copies (same upstream
fix).obj.set_user_data()/timer.set_user_data()/anim.set_var()/
subject.init_pointer()accept widget objects; plain Python ints remain
unsupported because LVGL stores avoid *.font.set_kerning()is not exposed: built-in Montserrat fonts are const
data and writing them crashes.