Micropython LVGL Demo Programms for Cheap Yellow Display

During my journey of learning to run LVGL under Micropython on the Cheap Yellow Display aka. ESP32-2432S028, I encountered lots of difficulties. Therefore, I documented some demo programms which are meant to help beginners to set up simple programms via Thonny on the CYD.

The repositry also contains a link to a precompiled firmware image of lvgl and Micropython which I found in a blog.

The repositry also explains how to configure the display driver to display correct colors. There is a minor difference in color-mode between CYD versions with one USB port and the ones with two USB ports.

The demo programms demonstrate:

  • simple demo with buttons and callback functions
  • using CYD2 in portrait mode with modiefied xpt2046 driver
  • loading a png image via png decoder
  • loading a custom text font
  • loading a custom icon font

And an advanced demo contains the following functions:

  • adding multiple screens with auto-generated navigation using a decorator
  • displaying a chart with data imported from a .csv file
  • using asyncio

https://github.com/de-dh/CYD2-MPY-LVGL