In this project, I'll explain how I built a temperature and humidity display using MicroPython and LVGL.
Building the Firmware:
I checked out lvgl-micropython from lvgl-micropython and built the binary file for the ESP32-S2 Mini with the ILI9341 display. I'm not sharing the exact make command because the code is still under development and there are ongoing changes.
Wiring the ESP32-S2 Mini to the ILI9341 and DHT11:
Proper connections were made between the ESP32-S2 Mini and the ILI9341 display, as well as the DHT11 sensor. You can refer to the main.py for the pin definitions.
Using Squareline Studio:
I downloaded Squareline Studio. Although it's not recommended by the lvgl_micropython developers due to compatibility issues with the generated code, I used it and customized the code to fit the lvgl_micropython bindings from kdschlosser.
Additional Features:
German_time class handles synchronization with an NTP server, including summer and winter time adjustments, though I'm not yet 100% satisfied with the solution.
https://github.com/fabse-hack/temp_humidity_micropython_lvgl
The author marked this model as their own original creation.