I am new to LVGL. Using WSL2, I have downloaded source from…
https://github.com/lvgl/lv_micropython.git
…by following the instructions at…
lv_micropython/README-LVGL.md at master · lvgl/lv_micropython
After installing a few extra packages, I was able to build for RPI_PICO and RPI_PICO2.
However, I need to build for RPI_PICO2_W - the board that has BLE and WiFi.
Unfortunately, the board is not in ports/rp2/boards, though it (any many others) are in the current Micropython source.
micropython/ports/rp2/boards at master · micropython/micropython
I can build for RPI_PICO2_W using the standard Micropython source above.
What is my best chance of getting Micropython LVGL running on this board?
I tried copying across the board definition files, but just ended up chasing undefined constants around the source, as the underlying versions seem to be too far apart.
I had hoped to get up and running quickly, but am now knee deep in build problems.
Do I try to patch LVGL into a current Micropython. If so, can anyone tell me the steps, or do I have to reverse engineer it by looking at what files are different between an LVGL Micropython source and a standard source and then try to reapply those changes to a new source?
Or do I wait for a new Micropython LVGL update that supports more boards?
I must be going about this the wrong way. It can’t be this hard. I would think this is now the most popular Pico board, since it has enough RAM for a decent UI, as well as connectivity to do something with it. Hundreds of people must already be using LVGL with this board - I just can’t work out how.
Thanks in advance for any help.
By the way, for anyone else struggling, who hasn’t got this far:
- You need to install doxygen, though compilation doesn’t spit out this error, seemingly unless you try to build without user c modules specified.
- You also need to install python3-pycparser.
(Neither of the above are included in Ubuntu WSL2 and are in addition to what is required for a standard Micropython build) - The board name in the instructions is now out of date. Instructions state PICO as the board name, though it is now RPI_PICO - I’m guessing the Micropython source has been updated since the instructions were written.