|
Forum Index : Microcontroller and PC projects : LCD Visual Design Studio Free browser-based UI builder & C++ generator
| Author | Message | ||||
| Batteryman Newbie Joined: 05/04/2016 Location: United KingdomPosts: 6 |
Hi everyone, Over the past few years (very many!), I’ve been working on a project to solve a headache I’m sure many of you have run into: designing touch screen interfaces for microcontrollers without having to manually calculate X/Y pixel coordinates and write endless boilerplate code. I’ve developed a free, browser-based visual designer called ESP32 Visual Studio (though it now supports quite a bit more than just the ESP32!): Website URL: https://esp32-lcd-designer.prontogwyn.site/ There is no account or sign-up required—you just open the page and can start designing right away. Why I Built It? I worked in the biotech instrument design and development industry, designing and bringing to market various precision measurement instruments. I'd write software apps to be able to create rapid concepts and prototypes for future instrument products. I also enjoy developing DIY homebrew projects and write little apps to make it easier to develop, so if you've ever tried building a multi-screen menu, a dashboard with gauges, or a keypad input on an SPI LCD in Arduino C++, you know how tedious it gets testing button hit-boxes, debouncing touch, and redrawing elements. I wanted an environment inspired by the classic Visual Basic / RAD workflow where you can: Drag controls onto an LCD canvas (sized for your exact screen). Set colors, styles, fonts, and ranges in an inspector. Double-click to write simple, familiar event code (e.g. Button1_Click, Slider1_Change, Timer1_Tick). Test it instantly in a browser simulator with interactive GPIO switches and LEDs. Click Export ZIP and get a clean, standard Arduino sketch with all libraries and headers configured. What’s Supported Microcontrollers: ESP32 (WROOM, S3), ESP8266, Raspberry Pi Pico / Pico W (RP2040), and the new Pico 2 / RP2350 (including 48-pin RP2350B boards). Displays: Standard SPI LCDs with XPT2046 touch (ILI9341 2.4"/2.8"/3.2", ILI9488 4", ST7789, ST7735), plus ready-made profiles for the Cheap Yellow Display (CYD 2.8") and Elecrow CrowPanel boards (2.4", 2.8", and the 7" RGB panel). Graphics Drivers: Generates clean code for TFT_eSPI (with automatic User_Setup.h), Adafruit GFX, Arduino_GFX, or LovyanGFX. Toolbox Controls: Pushbuttons (Rounded, Pill, Industrial Square, 3D Beveled, Ghost outline, Circular) Radio buttons with independent grouping Circular, Semicircular, and Linear Gauges with customizable warning/danger zones Sliders, Progress Bars, and Toggles Embedded resizable Images (auto-converted to RGB565 arrays) & Shapes Full Numeric Keypads (Phone, Calculator, PIN, Decimal) and a pop-up QWERTY Keyboard Canvas Waveform drawing (DrawLine, DrawCircle, DrawRect, FillScreen, DrawWidth) for plotting sensor curves or sine waves Multi-page/form navigation (Form2.ShowForm) Simulator: A built-in "Run Preview" with a virtual GPIO hardware bench that simulates pushbuttons, toggle switches, and glowing LEDs/PWM outputs before you touch any hardware. Looking for Your Thoughts & Feedback I’ve built this web-based version as a personal project to give something genuinely useful back to the maker community. I’d love for fellow BackShedders to give it a spin on their bench screens and let me know how it works for you. If you have a specific display driver, pinout, or feature you'd like to see added, please let me know—I'm actively refining it! Oh, I'm new to posting on forums! Please be gentle.. Cheers, Peter |
||||
| vegipete Guru Joined: 29/01/2013 Location: CanadaPosts: 1196 |
That's kinda cool! I've had a brief play with it, next I need to figure out how to use the output. An Undo button might be handy, for when I drag/resize a control un-intentionally. Font choice is unclear. For example, in the demo panel chosen at startup, the numerical value of the temperature shown in the Sensor1 control uses a different font than the value shown in the Gauge1 control. <Hmm, is the BackShed "Upload Image" button broken?> Would zoom make more sense if it showed screen resolution/pixels better? Visit Vegipete's *Mite Library for cool programs. |
||||
| phil99 Guru Joined: 11/02/2018 Location: AustraliaPosts: 3445 |
![]() Some formats (eg .BMP) not supported but .PNG and .JPG should be ok. There may also be a size limit. Clickable link for UI builder Edited 2026-11-18 08:56 by phil99 |
||||
| Batteryman Newbie Joined: 05/04/2016 Location: United KingdomPosts: 6 |
Thanks vegipete for taking a look and for the great feedback! Also phil99 for the clickable link, I just noticed the icon above the post editor. On Undo: Spot on. It’s very easy to accidentally nudge or resize a control while clicking around, so I'm adding an Undo (and Ctrl+Z) feature to make quick rollbacks seamless. On Fonts: Good catch! In the generated C++ code, the microcontrollers use TFT_eSPI's built-in bitmap fonts (Font 1 = 8px, Font 2 = 16px, Font 4 = 24px). The circular Gauge defaults to Font 2 so the number fits inside the dial arc, whereas the Sensor card uses Font 4 for a larger readout. On the browser LCD canvas, the sensor was also using a smoothed browser font instead of the pixel-accurate LCD font preview that the gauge uses. I'm updating this so all controls preview with consistent font rendering, and adding clearer font size controls in the property panel. Thanks again for trying it out, keep the ideas coming! Peter |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2026 |