is there a tutorial in video or by screenshot and the tools that must be downloaded to successfully compile lvgl for micropython.
i want to put it on esp32
but when i look at the lvgl doc on installing micropython for esp32. it’s really, really unclear to me.
can someone help me to understand
it tells me that it does not recognize the commands and it installs nothing at all.
I have since gone back to the docs. and the more I read and the more I sink, I really don’t understand anything anymore. I don’t understand how are nesting esp-idf/micropython/ and lv_micropython
I am completely stuck. What I understand is that you have to be on ubuntu to compile because windows does not work.
but is it possible to have a step by step procedure?
Micropython is Python for Microcontrollers. It can be built for different architectures (called “ports”).
ESP-IDF is the BSP for ESP32 microcontroller family. It is used by the Micropython ESP32 port to build Micropython for ESP32.
lv_micropython is a fork of Micropython that includes the LVGL library, and Python bindings for LVGL.
Currently lv_micropython doesn’t officially support Windows. There’s a related open ticked.
The recommended development platform is Linux. If you only have a Windows machine, you can run Linux in a VM on Windows, or try your luck with WSL.
The lv_micropython README provides a step-by-step procedure, assuming you have some background with Micropython and ESP32.
If you don’t - I suggest you start with the basics: Try to build Micropython and use it on your microcontroller. Make sure you are able to build it, flash it and use the REPL. You can find more examples and guides for pure Micropython than lv_micropython.
Once you are successful with Micropython, switch to lv_micropython by following the build instructions in the README.
What I don’t understand is that it gives me this error. then what i don’t understand is how to link esp-idf with port esp32 in lv_micropython
I thought I understood that it must be in relation to export.sh
Well I feel that we are not very far from getting there. on the other hand after I will have to look at all the configuration part with the drivers. In addition by chance I have a screen with an ili9488 driver and for the touch controller
XPT2046. I think there is no basic provision in lv_micropython?
But it tells you exactly what the problem is! Python is missing.
Try something like: sudo apt update; sudo apt install python3
You should first run export.sh, which defines some environment variables that specify where ESP-IDF is installed.
Then when you run make it will check these environment variables and use ESP-IDF according to them.
lv_micropython already supports ili9488 and XPT2046 on ESP32.
I use Arduino IDE 2.0 with Espressif system boards for Esp32, version 2.0 is very fast when compile, and better features compared with previous versions.
In this 2 projects you can see video and download source project (included also setup for LVGL 7.11 version):
I looked at your projects, and it’s really very interesting all that we can do.
however I have a question. because I looked but all the documents I find are for functions in C++. I thought there was a document with the commands for microphyton. but I can’t find it.
is there this kind of document to learn how to use the graphic library
Yes, i use Arduino Ide 2.0 and C++, is very good and fast now.
I think it is better if you deepen your knowledge of C ++ rather than a sub language
in one of the 2 videos (it seems to me the first) there is also an image that shows the structure that I use in the programs.
Also in the first video you can also understand how to save a screenshot on SPIFFS