Beginner Question: How i use it with an ESP32 S2 mini and ili9341 ? #11
-
|
Sorry for my noob question, but how i use it for an ESP32 S2 mini and ili9341 ? I see the ili9341 driver, but no touch driver, so i can not use touch on the display? //edit: ahh ILI9341 2.8" display and XPT2046 touch controller. So, is there a easy Step by Step Tutorial for beginners? Because i think, this lvgl on an ESP32 with micropython is a hugh benefit for all of us, but hard to use and there are not many projects out there....... Greetings |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
Hello! Unfortunately, the first step to using LVGL is being able to compile it for your system, the ESP32-S2 in your case. The current version of lv_micropython in the master branch has had the LVGL portion updated to LVGL 9.1, but the MicroPython portion hasn't been updated since MicroPython 1.20.0, which was released in April of 2023. Since then, the ESP-IDF that is required for Espressif ESP32 builds and the Pico-SDK that is required for Raspberry Pi RP2040 builds have both been updated. Older versions of Micropython like 1.20.0 won't build (compile) with current versions of the ESP-IDF and Pico-SDK. The way lv_micropython is organized, it is difficult to pull in newer versions of Micropython, making it a manual process. I think that's what the previous maintainer of lv_micropython had to do each time he wanted to upgrade to a new version of MicroPython. The maintainer left over a year ago, so lv_micropython hasn't been updated like it needs to be. So, at this moment we can't clone lv_micropython and build firmware for the ESP32-S family nor the RP2040 family. I just tried. The Unix build works, so there's still hope! @kdschlosser is not the maintainer of lv_micropython, but has come up with his own fork lvgl_micropython to overcome some of the problems with lv_micropython. I don't know what the status of his fork is, but it is the closest hope we have to running LVGL on current microcontrollers with current releases of MicroPython. MPDisplay is, among other things, hardware drivers written in Python that may be used with graphics libraries like LVGL, MicroPython-Touch and Nano-GUI. I am currently not testing MPDisplay with LVGL because I can test it other ways and know that it will work with LVGL on MicroPython for anyone who can get it to build. Hopefully that will be all of us soon. My suggestion to you being a self-proclaimed "beginner" is one of the following:
My MPDisplay, @peterhinch's MicroPython-Touch and @russhughes's libraries will work on MicroPython. CircuitPython includes DisplayIO, but MPDisplay will work on it as well. In fact, MPDisplay is portable to (big) Python on Windows and Linux, and possibly MacOS as well. So, you have a few options of you decide not to use LVGL, at least for now. Here's another problem... I haven't updated MPDisplay's documentation since the first (and only so far) alpha release 2 or 3 months ago. A LOT has changed since then. The next release will be simpler to install, use and understand, but it's still changing daily and not correctly documented. So... My final recommendation is to get CircuitPython and use DisplayIO for now. Check back in a few weeks and I should have the documentation updated for MPDisplay and you can decide then if you want to give it a try on your already installed CircuitPython. Adafruit has tons of learn guides and videos for using their software, including DisplayIO, so I think it's the best resource for you for now. |
Beta Was this translation helpful? Give feedback.
-
|
Can you update info how use new SPI with display for ili9341. What file need from repo? |
Beta Was this translation helpful? Give feedback.
-
|
Some info about. |
Beta Was this translation helpful? Give feedback.
Hello @straga. It looks like you got it worked out in the link you supplied. Thanks!