ESPHome’sDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/esphome/esphome.io/llms.txt
Use this file to discover all available pages before exploring further.
display component powers a wide range of screens — from tiny 128×32 OLED modules to 4” 480×320 color TFT panels, ePaper displays, and HUB75 LED matrices. It exposes a unified rendering API via a lambda: function that receives a drawing context (it) and lets you paint text, shapes, images, graphs, and sensor values every refresh cycle. For interactive UIs, LVGL integration is also available.
Base Display Configuration
All display platforms inherit these configuration variables.The ID used to reference this display. Required when multiple displays are configured.
How often the display lambda is called to redraw the screen. Defaults to
1s. Set to never for manual updates only.C++ code executed each refresh cycle. Receives
it — the display rendering engine object.Screen rotation in degrees:
0, 90, 180, or 270. Defaults to 0.If
true, the display is cleared to background color before each lambda call. Defaults to true when a lambda or pages are configured.If
true, shows an RGB test card instead of running the lambda. Useful for verifying orientation and color mapping. Defaults to false.A list of named pages with individual lambdas. Switch between pages using display actions.
Drawing API Reference
All drawing methods are called onit inside the lambda:.
Basic Shapes
Colors
Color Configuration
Channel brightness as a percentage (0–100%). Defaults to
100%.Channel brightness as an integer.
Color as a 6-digit hex string (e.g.
FF3340).Text Rendering
Displaying Time
Screen Clipping
Displaying Images
Display Pages
Pages allow switching between multiple screen layouts.Page Actions
display.is_displaying_page Condition
on_page_change Trigger
Popular Display Platforms
SSD1306 (OLED)
128×64 or 128×32 monochrome OLED over I²C or SPI. The most common small display for DIY projects.
ILI9xxx / ST7789 (TFT)
Color TFT LCD panels ranging from 1.8” to 4”. SPI interface, up to 320×480 resolution.
Waveshare ePaper
E-paper displays with ultra-low power and sunlight readability. Slow refresh but persistent image without power.
MAX7219 (7-Segment)
Daisy-chained 7-segment or 8×8 LED matrix displays driven by SPI.
LCD Display (HD44780)
Classic character LCD modules (16×2, 20×4) over I²C or parallel bus.
MIPI SPI / RGB / DSI
High-resolution TFT panels using MIPI interfaces. Supports ESP32-S3 and ESP32-P4 with PSRAM.
Nextion
Serial display with its own MCU for graphics. ESPHome sends commands and reads touch events.
HUB75 LED Matrix
Addressable RGB LED matrix panels (P2.5, P3, P4, P5) driven directly from ESP32.