Hello Everyone!
I am new to the LVGL with Micropython. I followed the instruction from https://github.com/lvgl/lv_micropython to build the lv_micropython for the raspberry pico.
git clone https://github.com/lvgl/lv_micropython.git
cd lv_micropython
git submodule update --init --recursive lib/lv_bindings
make -C ports/rp2 BOARD=PICO submodules
make -j -C mpy-cross
make -j -C ports/rp2 BOARD=PICO USER_C_MODULES=../../lib/lv_bindings/bindings.cmake
The build was successful and I did see the firmware.uf2
inside the build folder.
However, when I connected the pico to thonny, and try to import st77xx driver “from st77xx import *” I got error that the module was not found. I am not sure which step was missing, can anyone help?
I am also a newbie to lvgl micropython having started the other day.
There are some files that you should copy, such as st77xx.py, xp2040.py and related files.
In my case, I use Thonny to copy the files in the following directory to the Raspberry Pi Pico’s Micropython storage.
lv_micropython/lib/lv_bindings/lib/*
lv_micropython/lib/lv_bindings/driver/rp2/*
lv_micropython/lib/lv_bindings/driver/generic/*
I think this file copy will eliminate the import error.
Thank you! Copy the driver works.
I had the same issue. I had to copy the python bindings to the pico because it did not find them.
But the examples that are given on GitHub - lvgl/lv_binding_micropython: LVGL binding for MicroPython show
from st77xx import St7789
where as if I copy the files to the pico
from driver.generic.st77xx import St7789
so how does one check if the bindings have been compiled into the firmware or how do you include them - is there a flag that has to be set when building?