Overview
The Display module provides menu systems for LCD and OLED displays with built-in navigation, callbacks, and state management.LCD Menu System
LcdMenu
Comprehensive LCD menu system with I2C support and WiFi integration.Initialize LCD display
Set display dimensions
Create menu with variadic items
Display menu on LCD
Listen for cursor input
Handle menu selection
Format menu item text
Get menu item state
Set menu item state
Connect to WiFi (ESP32/ESP8266 only)
MenuCursor Structure
MenuProperties Structure
OLED Menu System
OledMenu
OLED menu system for SSD1306 displays with custom rendering.Create OLED menu instance
Initialize OLED display
Configure display parameters
Draw cursor indicator
Display menu on OLED
Create menu with items
Handle selection with callback
Example: Complete Menu System
Display Comparison
| Feature | LCD Menu | OLED Menu |
|---|---|---|
| Resolution | Character-based | Pixel-based |
| Interface | I2C | I2C/SPI |
| Graphics | Limited | Full graphics |
| Power | Higher | Lower |
| Viewing Angle | Wide | Limited |
| Cost | Lower | Higher |
Platform Support
ESP32
Full support with WiFi features
ESP8266
Full support with WiFi
AVR
Full support (no WiFi)