Develop a UI Library for ESP32 Prompt
Sets the AI up as an embedded systems developer. It's for developers. Use it when short image descriptions keep giving you generic results.
Act as an Embedded Systems Developer. You are an expert in developing libraries for microcontrollers with a focus on the ESP32 platform. Your task is to develop a UI library for the ESP32 with the following specifications: - **MCU**: ESP32 - **Build System**: PlatformIO - **Framework**: Arduino-ESP32 - **Language Standard**: C++14 (modern, RAII-style) Compiler flag "-fno-rtti" - **Web Server**: ESPAsyncWebServer - **Filesystem**: LittleFS - **JSON**: ArduinoJson v7 - **Frontend Schema Engine**: UI-Schema You will: - Implement a Task-Based Runtime environment within the library. - Ensure the initialization flow is handled strictly within the library. - Conform to a mandatory REST API contract. - Integrate a C++ UI DSL as a key feature. - Develop a compile-time debug system. Rules: - The library should be completely generic, allowing users to define items and their names in their main code. This task requires a detailed understanding of both hardware interface and software architecture principles. Your responsibilities: - Develop backend logic for device control and state management. - Serve static frontend files and provide UI-Schema and runtime state via JSON. - Ensure frontend/backend separation: Frontend handles rendering, ESP32 handles logic. Constraints: - No HTML, CSS, or JS logic in ESP32 firmware. - Frontend is schema-driven, controlled via JSON updates.
Source: awesome-chatgpt-prompts (CC0).
How to use this prompt
- 1
Copy the prompt
Use the copy button, or type its Retext trigger in any app to paste it.
- 2
Open your AI assistant
Start a new chat in ChatGPT, Claude, Gemini or the assistant you use.
- 3
Fill in the details
Replace any [bracketed] parts with your own details.
- 4
Check and refine
Read the answer, then reply with one change at a time.
Tips for better results
- •Expect a JSON. Name the exact columns, fields or sections you want so you can paste the result straight into your own document.
- •Image tools differ in which settings they read (aspect ratio, style flags, negative prompts). Keep the subject and style lines, and drop settings your tool ignores.
- •To steer the embedded systems developer, add one line after the prompt about your situation: your level, your goal and anything to avoid.
Get the free prompt pack
Our best coding prompts in one Markdown file, delivered by email. The templates here stay free either way — the pack just saves you the copying.
Variations
Different style
Keep the subject and composition, and replace the style details with: [style, e.g. watercolor, 35mm film photo, flat vector illustration].
Different format
Add this line: Compose for a [aspect ratio, e.g. 9:16 phone wallpaper] and leave empty space at the [top/bottom] for text.
Context first
Add this line at the end: Before you start, ask me up to three questions about what I need from the embedded systems developer and wait for my answers.
Save it as a Retext snippet
Retext is a free text expander for Mac. Save this prompt once, then type ;develop in any app (ChatGPT, Claude, your editor, a browser tab) and the full prompt is pasted in.
- Click Add to Retext. The prompt installs as a snippet with the trigger ;develop.
- Change the trigger in Retext if you prefer a different one.
- Type the trigger wherever you want the prompt, then fill in the brackets.
Frequently asked questions
What does the Develop a UI Library for ESP32 prompt do?
Sets the AI up as an embedded systems developer. It's written for developers.
Which AI tools does it work with?
It's plain text, so you can paste it into any image generator that takes text prompts, or into a chat assistant that creates images. Drop any settings your tool doesn't support.
Can I save this prompt as a snippet?
Yes. Click Add to Retext and it installs as a snippet with the trigger ;develop. Type that in any Mac app to paste the full prompt.
Related Templates
Get the free prompt pack
Our best coding prompts in one Markdown file, delivered by email. The templates here stay free either way — the pack just saves you the copying.