How pupariaa/lucarne works
Lucarne is an embedded UI toolkit for Arduino and ESP32 SPI displays. The main device workflow is to initialize a display, compose screens from widgets, supply data and input, then render through the graphics and panel-driver layers. The README also documents a browser Studio for designing, simulating, and exporting C++, plus USB Live Preview. Studio is not present in the supplied source tree; its node and links are based on README statements. Other links rely on the README or SOURCE INDEX references, not inspection of unsampled implementations.
Main entry points: LucarneUI.cpp UI runtime · LucarneDisplay.cpp Display API · LucarneScreen.cpp Screens and transitions · LucarneWidget.cpp Widgets
Components 20
Display and graphics
- Display API
src/display/LucarneDisplay.cpp - ST77xx drivers
src/display/LucarneST77xx.h - Graphics primitives
src/core/LucarneGfx.cpp - Fonts and text
src/core/LucarneClassicFont.cpp
UI runtime
- UI runtime
src/ui/LucarneUI.cpp - Screens and transitions
src/ui/LucarneScreen.cpp - Widgets
src/ui/LucarneWidget.cpp - Menus
src/ui/widgets/LucarneMenu.cpp - Buttons
src/ui/widgets/LucarneButton.cpp - Data binding
src/ui/LucarneStore.cpp - Theme
src/ui/LucarneTheme.h
Assets and input
- Physical input
src/ui/LucarneInput.cpp - Image loading
src/ui/LucarneImageLoader.cpp - Image assets
src/ui/LucarneImageAsset.h - Icon rendering
src/ui/LucarneIconDraw.cpp - Animated icons
src/ui/LucarneIconAnim.h
Authoring and preview
- Lucarne Studio
- Live Preview
src/tools/LucarneLivePreview.h - Studio USB host
Other components
- Application developer
Connections 20
- Application developer → Display API: initializes
README.md - Application developer → UI runtime: composes UI
README.md - UI runtime → Display API: renders through
- Display API → Graphics primitives: extends
- Display API → ST77xx drivers: uses panel layer
src/display/LucarneDisplay.cpp - Graphics primitives → Fonts and text: draws text
src/core/LucarneGfx.cpp - UI runtime → Screens and transitions: manages screens
src/ui/LucarneUI.cpp - UI runtime → Data binding: binds data
- UI runtime → Theme: applies theme
- Screens and transitions → Widgets: contains widgets
- Screens and transitions → Menus: routes menu selection
- UI runtime → Physical input: handles input
- Widgets → Image loading: loads images
src/ui/LucarneWidget.cpp - Image loading → Image assets: reads assets
- Widgets → Icon rendering: draws icons
src/ui/LucarneIconDraw.cpp - Icon rendering → Animated icons: renders animation
src/ui/LucarneIconDraw.cpp - Application developer → Lucarne Studio: designs and exports
README.md - Lucarne Studio → Live Preview: streams preview
README.md - Studio USB host → Live Preview: sends frames
src/tools/LucarneLivePreview.h - Live Preview → Display API: blits frames
src/tools/LucarneLivePreview.h