What it generates
One generator, three targetsMicroPython
generated/lvgl_micropython.c — consumed by lvgl-micropython.
CircuitPython
generated/lvgl_circuitpython.{c,h} — consumed by lvgl-circuitpython.
CPython
generated/lvgl_python.c — auto-synced into lvgl-python on push to main.
Regenerate after changes
After editinglvgl/, lv_conf.h, or binding/
git clone https://github.com/PyDevices/lvgl-bindings.git
cd lvgl-bindings
git submodule update --init lvgl
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
./regenerate_lvmp.sh # MicroPython → lvgl_micropython.c
./regenerate_lvcp.sh # CircuitPython → lvgl_circuitpython.c/.h
./regenerate_lvpy.sh # CPython → lvgl_python.c
./regenerate_all.sh # all three, plus commit + tag
./scripts/verify_bindings.sh # regen + regression checks
Consumers
Rebuild these after regenerating- lvgl-micropython — MicroPython usermod
- lvgl-circuitpython — CircuitPython integration
- lvgl-python — CPython
import lvgl