Hi, I am new to this forum.
My question is regarding the use of RP Pico with LVGL applying it through SquareLine and what are the steps to begin work with them.
I’ve read the whole LVGL documentation but it is still unclear for me how to even begin a project (and if it is even possible). I know that it is possible to write pure code for creating a GUI with LVGL but until know I have only used MicroPython for coding and C is a no go for me since I am a noob.
The project I am trying to create is a simplified car cluster which includes speedometer, tachometer and digit represented speed (all of them will be ran by simulated data).
What MCU/Processor/Board and compiler are you using?
MCU - RP2040/Raspberry Pi Pico
Until now I have used Thonny with MicroPython
What do you want to achieve?
Using LVGL (most likely with SquareLine) to create a simplified car cluster
What have you tried so far?
Using the included graphic libraries for MicroPython from the manufacturer of the display I am using (Pimoroni Pico Display Pack 2.8" with driver - ST7789V). However they are way to simple for what I want to achieve with the project, for example I cannot create curved lines
Code to reproduce
Add the relevant code snippets here.
The code block(s) should be between ```c and ``` tags:
/*You code here*/
Screenshot and/or video
If possible, add screenshots and/or videos about the current state.
The speedometer on the picture below is what I am aiming for.
I have a very similar question. Is there a tutorial out there that I can follow to build GUI for RPI or Pi Pico wth Micropython and Thonny? Any lead is greatly appreciated!
I would love to get started with LVGL, MicroPython, Pico on various displays (SSD1331, SSD1306, ILI9341 and/or others). Creating environmental sensor projects ideally to teach people 9th grade+ to learn to code for microcontrollers. GUI is a challenge and LVGL looks like a great solution. I too use Thonny as that is what my target audience starts with.
But…
I have spent 2 days with ChatGPT trying to iron out issues just installing on Ventura Mac and after multiple (too many!) installs with brew, apt-get, make > cmake > make … and essentially getting into a loop of potential fixes (none of which work), I’m no further along (other than eating up disk space). Would love a step-by-step with troubleshooting though I guess that’s a tall order. OR - instructions on how to bind the lvgl library (and which one) with Python / MicroPython files. (i.e.: is it possible to simply download a general-purpose version, and/or include display drivers if necessary, add an import at the top of the code and run with it or am I just insanely naive? It’s a pretty steep barrier to entry for the hobbyist/n00b.
Sadly, no luck still. I followed the GitHub instructions above and ‘seem’ to get through it all, except for being able to run the ‘build-standard/micropython’ on Mac OSX (Ventura) or being able to try importing lvgl using the Pico port. (tried installing the firmware PICO_W .utf on Pico W but didn’t seem to complete properly).
Rpi 4 and Rpi 5 should definitely work with UNIX build and I have been using it for a few weeks without issues. Pico is always tricky because of the firmwares and stuff. Is there any reason you have to stick to PICO?
The pico is key as it is the platform for a set of student courses for high-school. I could move it to ESP32, but if that is the case, will have to push it out until next year (or longer). I was hoping to get something up and running quickly (and something students could use across projects), but will probably switch to building something bespoke for GUI on student projects.
is the delay caused by procurement…? esp32 are quite affordable I remember. There are other simpler GUI frameworks available for RPI. Pico wasn’t really meant for graphic interface