Micropython Display Drivers

I have a HUGE announcement! I have written ESP32 display drivers in C based on Russ Hughes’s S3LCD drivers. They are not linked to LVGL, yet they work with LVGL fantastically. Since they aren’t linked to LVGL, there is no need for lv_micropython_bindings to be linked to ESP-IDF, overcoming the problem with compiling LVGL for ESP32 targets. They use DMA and non-blocking. I have tested them with several displays and ESP32S3 boards, including the WT32-SC01-Plus, which has an Intel 8080 bus (8 bit) to an ST7796 chip, and a Seeed Studio Round Display for Xiao with SPI bus GC9A01 chip connected to an Adafruit QT Py ESP32-S3. The driver should work on all ESP32 targets, but I have only tested on ESP32-S3. I have not tested on lv_micropython with Micropython 1.21, but it works flawlessly on lv_micropython with MIcropython 1.20. If I get good feedback from the community, I plan to add RP2 and STM32 targets, as well as others that I can get the hardware to test on. The documentation is good enough for someone familiar with compiling Micropython to follow, but I haven’t had the time to learn Markdown yet, so it is formatted poorly. You can find them at GitHub - bdbarnett/mpdisplay: C Display Drivers for Micropython including LV_Micropython.

I created a file lvmp_devices.py that makes it VERY simple to use the display drivers with lv_micropython. It serves a similar purpose as display_utils.py, but is much more powerful. It also makes it easy to use generic (not-LVGL specific) Micropython drivers for touch and encoders too! Because it isn’t tied only to my mpdisplay drivers, I put it in its own repo at GitHub - bdbarnett/lvmp_devices: Micropython device manager wrapper for LVGL display and touchscreen drivers.

Please give me a few days to make sure it’s working correctly with lv_micropython on Micropython 1.21. However, I would appreciate you testing it out with lv_micropython 1.20 and giving me any feedback either here or on the discussion boards at those 2 repos. I’m very excited about releasing these and hope you are too!

1 Like