Skip to content

RTechAI/esp32p4-ui-studio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

59 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ› ๏ธ ESP32-P4 Studio | Visual LVGL v9 HMI Designer & ESP-IDF Flash Toolchain

ESP-IDF Version LVGL Version Target Hardware License

AI Nexus Theme

AI Nexus

ESP32-P4 Studio (ForgeUI Studio) is an open-source visual HMI designer, LVGL code generator, asset pipeline, and automated deployment environment built specifically for Espressif ESP32-P4 hardware running LVGL v9 and ESP-IDF.

The platform bridges browser-based drag-and-drop UI design with native embedded deployment. Layouts, widgets, styling, assets, and image resources are transformed into optimized LVGL C code, compiled locally using ESP-IDF, and deployed directly to physical ESP32-P4 hardware.


โšก Core Philosophy

ForgeUI Studio exists to eliminate:

Manual coordinate calculations
Manual LVGL coding
Manual asset conversion
Manual CMake maintenance
Manual firmware integration

while preserving:

Native LVGL
Native ESP-IDF
Native C code
Native hardware performance

No runtime web framework is deployed onto the microcontroller.

Everything becomes pure embedded firmware.


๐Ÿš€ Proven Embedded Toolchain Pipeline

Visual Canvas
      โ†“
Component Tree
      โ†“
LVGL Code Generator
      โ†“
Asset Pipeline
      โ†“
Generated C Sources
      โ†“
Generated CMake Sources
      โ†“
ESP-IDF Build
      โ†“
ESP32-P4 Flash
      โ†“
Physical Hardware Execution

๐Ÿ–ผ๏ธ Uploaded Image Pipeline V1 (PROVEN)

ForgeUI Studio now includes a fully integrated offline LVGL v9 image asset pipeline.

Uploaded artwork can be converted, compiled, flashed, and rendered directly on physical ESP32-P4 hardware.

No cloud services are required.

All conversion occurs locally.


Converter

Location:

tools/lvgl/LVGLImage.py

Status:

PROVEN

Dependencies:

pypng
lz4

Proven Workflow

PNG Upload
    โ†“
Asset Manager
    โ†“
LVGLImage.py
    โ†“
ARGB8888 Conversion
    โ†“
Generated LVGL C Asset
    โ†“
Firmware Assets/uploads
    โ†“
Asset Registry
    โ†“
assetSources[]
    โ†“
Generated CMake
    โ†“
LV_IMAGE_DECLARE(...)
    โ†“
lv_image_set_src(...)
    โ†“
Build & Flash
    โ†“
Physical ESP32-P4 Rendering

Proven Capabilities

โœ“ PNG Upload

โœ“ JPG Upload

โœ“ SVG Upload

โœ“ Drag & Drop Asset Import

โœ“ Thumbnail Generation

โœ“ Uploaded Asset Registry

โœ“ Automatic LVGL Conversion

โœ“ Automatic Asset Compilation

โœ“ Automatic CMake Integration

โœ“ Automatic LV_IMAGE_DECLARE Generation

โœ“ Automatic lv_image_set_src Generation

โœ“ ESP-IDF Compilation

โœ“ Physical ESP32-P4 Rendering

Architecture Truth

Uploaded Asset
    โ†“
LVGLImage.py
    โ†“
Generated LVGL C Asset
    โ†“
Firmware Assets/uploads
    โ†“
Asset Registry
    โ†“
assetSources[]
    โ†“
Generated CMake
    โ†“
Build & Flash
    โ†“
ESP32-P4 Display

PROVEN

โœ… Proven Milestones

Theme Manager V2 โœ“ PROVEN

Single Theme Source Architecture โœ“ PROVEN

Fullscreen Theme Backgrounds โœ“ PROVEN

Builder Theme Rendering โœ“ PROVEN

Browser Preview Theme Rendering โœ“ PROVEN

Physical P4 Theme Rendering โœ“ PROVEN

AI Theme Pack โœ“ PROVEN

Browser UI Builder                  โœ“ PROVEN

Browser Preview                     โœ“ PROVEN

Build & Flash                       โœ“ PROVEN

Clean Build & Flash                 โœ“ PROVEN

Detached ESP-IDF Export             โœ“ PROVEN

LVGLImage.py Integration            โœ“ PROVEN

PNG โ†’ LVGL C Conversion             โœ“ PROVEN

Uploaded Asset Pipeline             โœ“ PROVEN

Automatic CMake Injection           โœ“ PROVEN

Automatic Asset Compilation         โœ“ PROVEN

Physical ESP32-P4 Image Rendering   โœ“ PROVEN

๐Ÿš€ Standalone ESP-IDF Export Pipeline

ForgeUI Studio supports exporting fully standalone ESP-IDF firmware projects directly from the visual editor.

Generated projects become independent of the Studio environment.


Portable Project Ecosystem

Zero Framework Lock-In

Exported projects open directly inside:

Visual Studio Code
ESP-IDF Extension

without requiring ForgeUI Studio.

Clean Rebuilds

Projects support:

idf.py reconfigure
idf.py build
idf.py flash

from a clean environment.

Lightweight Integration

The Studio injects only:

90_Studio_Export.c
90_Studio_Export.h

into the runtime shell.

Everything else remains standard ESP-IDF.


Proven Export Validation Flow

ForgeUI Studio Canvas
           โ†“
Generate Native LVGL Runtime
           โ†“
Generate Asset Sources
           โ†“
Generate CMake Sources
           โ†“
Export Standalone ESP-IDF Project
           โ†“
Open in VS Code
           โ†“
idf.py build
           โ†“
idf.py flash
           โ†“
Successful ESP32-P4 Boot

๐Ÿ› ๏ธ Supported Hardware

Primary validation target:

Waveshare ESP32-P4-WIFI6-Touch-LCD-7B

Hardware Baseline

ESP32-P4

1024 ร— 600 Display

MIPI-DSI LCD

GT911 Touch Controller

LVGL v9

ESP-IDF v5.5.4

ESP-Hosted WiFi

Audio

RTC

SD Card

๐Ÿ“ฆ Repository Architecture

esp32p4-ui-studio/
โ”œโ”€โ”€ studio/
โ”‚   โ””โ”€โ”€ React / Next.js UI Builder

โ”œโ”€โ”€ firmware/
โ”‚   โ””โ”€โ”€ ForgeUI-One/
โ”‚       โ””โ”€โ”€ Native ESP-IDF Runtime

โ”œโ”€โ”€ tools/
โ”‚   โ””โ”€โ”€ lvgl/
โ”‚       โ””โ”€โ”€ LVGLImage.py

โ”œโ”€โ”€ docs/

โ”œโ”€โ”€ START_FORGEUI_STUDIO.bat
โ”œโ”€โ”€ START_FORGEUI_STUDIO_HIDDEN.vbs
โ”œโ”€โ”€ STOP_FORGEUI_STUDIO.bat

โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ LICENSE
โ”œโ”€โ”€ THIRD_PARTY_LICENSES.md
โ””โ”€โ”€ 01_SPINE.md

C:\
โ””โ”€โ”€ ForgeUI-Exports\

๐Ÿ—๏ธ Architectural Separation

Studio Layer

Responsible for:

Visual Editing

Widget Management

Themes

Asset Management

LVGL Generation

Export Generation

Firmware Layer

Responsible for:

ESP-IDF Runtime

LVGL Runtime

Display Drivers

Touch Drivers

Audio

RTC

WiFi

SD Card

Generated UI Execution

๐Ÿšจ Design Rules

No Browser Runtime On Hardware

The ESP32-P4 never runs:

React
HTML
CSS
JavaScript
Chakra UI

Pure Native Output

Everything becomes:

C

LVGL

ESP-IDF

Static Generation

The Studio exports:

Static LVGL Code

Static Assets

Static Firmware Artifacts

for maximum runtime performance.


๐ŸŽจ Supported Widgets

Current widget support:

Structure

Text
Box
Image

Input

Input
Textarea
NumberInput
Select

Controls

Button
Switch
Checkbox
Radio
Slider

Status

Progress
CircularProgress

Widget Validation Path

Canvas
    โ†“
Preview
    โ†“
Generated LVGL
    โ†“
ESP32-P4 Hardware

๐ŸŽจ Built-In Themes

Included themes:

Industrial Carbon

Brushed Steel

Reactor Hex

Terminal Green

Military Plate

Nordic Engineering

Nordic Ice

Nordic Frost

Nordic Slate

Nordic Night

Control Room

Cyber Teal Pro

Forge Orange

Carbon Red

OLED Black Pro

Clean Light Pro

Test Purple

Quantum Hex

AI Mesh

Neural Core

Quantum Flow

AI Nexus

Neon Horizon

Nebula Core

Singularity

๐ŸŽจ Theme System V2 (PROVEN)

๐ŸŒŒ Fullscreen Theme Backgrounds V1 (PROVEN)

Status:

PROVEN

ForgeUI Studio now supports two background rendering modes:

tile
fullscreen

Tile Mode

Used by industrial textures:

Carbon Fiber

Brushed Steel

Hex Mesh

Blueprint Grid

Industrial Panel

Dark Noise

Rendering:

Repeated texture rendering

Builder
Browser Preview
LVGL Export
ESP32-P4

Fullscreen Mode

Used by AI and sci-fi themes:

AI Mesh

AI Nexus

Neural Core

Quantum Flow

Quantum Hex

Neon Horizon

Nebula Core

Singularity

Rendering:

Single 1024x600 hero image

Builder
Browser Preview
LVGL Export
ESP32-P4

Proven Validation Path

Theme Manager
      โ†“
Builder
      โ†“
Browser Preview
      โ†“
ForgeUILvglExport
      โ†“
Generated LVGL C
      โ†“
ESP32-P4 Hardware

Hardware Validation

Validated on:

Waveshare ESP32-P4-WIFI6-Touch-LCD-7B

Results:

โœ“ Fullscreen hero backgrounds render correctly

โœ“ Widgets render above backgrounds

โœ“ Build & Flash successful

โœ“ Clean Build & Flash successful

โœ“ Theme Manager integration successful

โœ“ Browser Preview parity achieved

โœ“ Physical ESP32-P4 rendering proven

Status:

PROVEN

Theme definitions live in a single location:

studio/src/forgeui/preview/forgeThemeMap.ts

Current architecture:

FG_PREVIEW_PALETTES
        โ†“
Theme Manager
        โ†“
ForgeThemeContext
        โ†“
Builder
        โ†“
Browser Preview
        โ†“
ForgeUILvglExport
        โ†“
Generated LVGL
        โ†“
ESP32-P4

Theme synchronization is automatically maintained across:

Theme Manager

Builder

Browser Preview

Generated LVGL

ESP32-P4 Hardware

Adding a theme to:

FG_PREVIEW_PALETTES

automatically:

โœ“ Appears in Theme Manager

โœ“ Appears in Browser Preview

โœ“ Exports to LVGL

โœ“ Flashes to ESP32-P4

Theme drift has been eliminated.

No duplicate palette definitions remain.


๐Ÿ”„ Typical Workflow

Start ForgeUI Studio
        โ†“
Design Interface
        โ†“
Upload Assets
        โ†“
Preview Layout
        โ†“
Build & Flash
        โ†“
Test On Hardware
        โ†“
Export Standalone ESP-IDF Project
        โ†“
Deploy

๐Ÿ”ฎ Current Development Direction

Theme System V2 (PROVEN)

Fullscreen Hero Backgrounds (PROVEN)

AI Theme Pack (PROVEN)

Texture Pack V1 (PROVEN)

Builder โ†” Browser Preview Theme Sync (PROVEN)

LVGL Theme Export Pipeline (PROVEN)

ESP32-P4 Theme Rendering (PROVEN)

Theme Metadata V1

Theme Categories

Custom Theme Creation

Theme Import / Export

Theme Marketplace Concepts

Background Playground

Theme Randomiser

Animated Theme Effects

Builder โ†” Preview โ†” Hardware
Visual Parity Refinement

Image Scaling Refinement

Asset Cleanup Management

Asset Browser Improvements

Asset Categorisation

Template Expansion

Dashboard Templates

Industrial HMI Templates

Desktop Wrapper Investigation

Electron Packaging

Offline Installer

Future AI-Assisted UI Generation

Natural Language UI Generation

Theme Generator AI

Screen Generator AI


๐Ÿ“œ Open Source Attribution

ESP32-P4 Studio is built upon the excellent open-source editor foundations originally created by Premier Octet.

The project has been extensively adapted and expanded for:

ESP32-P4

LVGL v9

ESP-IDF

Embedded HMI Development

Asset Pipelines

Automated Deployment

Original licensing and attribution remain preserved.


๐Ÿ‘จโ€๐Ÿ’ป Project Maintainer

Scott Forster
ForgeUI Project

๐Ÿ“ง forgeui.esp32@gmail.com


Current Save Point

FORGEUI_FULLSCREEN_THEME_BACKGROUNDS_V1__P4_HERO_RENDERING_PROVEN__SINGLE_THEME_ARCHITECTURE_STABLE__2026-06-13
{
  "@context": "https://schema.org",
  "@type": "SoftwareApplication",
  "name": "ESP32-P4 Studio",
  "alternateName": "ForgeUI Studio",
  "applicationCategory": "DeveloperApplication",
  "operatingSystem": "Windows, Linux, macOS",
  "targetPlatform": "Espressif ESP32-P4 RISC-V, Waveshare ESP32-P4-WIFI6-Touch-LCD-7B",
  "programmingLanguage": "C, C++, TypeScript, Python",
  "runtimePlatform": "ESP-IDF v5.5.4, LVGL v9",
  "description": "Visual HMI designer, LVGL v9 code generator, local image asset compilation pipeline, and automated deployment environment for Espressif ESP32-P4 hardware.",
  "features": [
    "Offline ARGB8888 Image Conversion via tools/lvgl/LVGLImage.py",
    "Single Source of Truth Theme Engine via forgeThemeMap.ts",
    "Detached, portable standalone ESP-IDF project exporting",
    "1-Click local build and flash over USB-UART"
  ],
  "author": {
    "@type": "Organization",
    "name": "RTechAI"
  },
  "softwareVersion": "2.0.0",
  "license": "https://opensource.org"
}

About

Open-source visual LVGL v9 HMI designer for ESP32-P4. Drag-and-drop UI builder, theme system, asset pipeline, LVGL code generation, standalone ESP-IDF export, and 1-click hardware deployment.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors