DisplayUI: A Lightweight Embedded GUI Framework for Resource-Constrained Microcontrollers

Graphical user interfaces on embedded systems have become ubiquitous, powering applications from smart-home panels to industrial human-machine interfaces (HMIs). Yet the dominant open-source GUI libraries — LVGL, TouchGFX, and Qt for MCUs — demand memory resources that exceed what low-cost microcontrollers such as the ESP32-WROOM-32 can comfortably provide, especially when no external PSRAM is available. This paper presents DisplayUI, a purpose-built, header-only C++ GUI framework designed for the ESP32-2432S028R "Cheap Yellow Display" (CYD) and similar resource-constrained platforms. DisplayUI implements a complete set of interactive widgets, a multi-state touch engine, a page-based visibility manager, and a per-element dirty-rectangle renderer — all within approximately 1800 lines of code and consuming less than 40 KB of flash and under 10 KB of RAM at runtime. We detail the architectural decisions that enable this efficiency: elimination of a full-frame buffer, direct SPI rendering with incremental updates, integer arithmetic throughout, and compile-time polymorphism via templates. A comparative evaluation against LVGL, TFT_eSPI, U8g2, and Adafruit_GFX demonstrates that DisplayUI achieves competitive rendering throughput while requiring 5–50× less memory. The complete source code is released under the MIT license.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-05-31
DOI
https://doi.org/10.5281/zenodo.20468133
Primary Topic
Embedded Systems Design Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

DisplayUI: A Lightweight Embedded GUI Framework for Resource-Constrained Microcontrollers

Lucas Lima Freitag Freitag
Zenodo (CERN European Organization for Nuclear Research)
Embedded Systems Design Techniques
article

DisplayUI: A Lightweight Embedded GUI Framework for Resource-Constrained Microcontrollers

Lucas Lima Freitag Freitag
article en

Abstract

Graphical user interfaces on embedded systems have become ubiquitous, powering applications from smart-home panels to industrial human-machine interfaces (HMIs). Yet the dominant open-source GUI libraries — LVGL, TouchGFX, and Qt for MCUs — demand memory resources that exceed what low-cost microcontrollers such as the ESP32-WROOM-32 can comfortably provide, especially when no external PSRAM is available. This paper presents DisplayUI, a purpose-built, header-only C++ GUI framework designed for the ESP32-2432S028R "Cheap Yellow Display" (CYD) and similar resource-constrained platforms. DisplayUI implements a complete set of interactive widgets, a multi-state touch engine, a page-based visibility manager, and a per-element dirty-rectangle renderer — all within approximately 1800 lines of code and consuming less than 40 KB of flash and under 10 KB of RAM at runtime. We detail the architectural decisions that enable this efficiency: elimination of a full-frame buffer, direct SPI rendering with incremental updates, integer arithmetic throughout, and compile-time polymorphism via templates. A comparative evaluation against LVGL, TFT_eSPI, U8g2, and Adafruit_GFX demonstrates that DisplayUI achieves competitive rendering throughput while requiring 5–50× less memory. The complete source code is released under the MIT license.

Zenodo (CERN European Organization for Nuclear Research)
Universidade Federal do Rio Grande do Norte (BR)
Openalex Percentile: Top 3%
Embedded Systems Design Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.