ESP32 UI Library Development prompt

Coding7.3K

按指定技术栈开发ESP32的UI库

Develop a UI library for the ESP32 to a detailed spec.

Full prompt
扮演一名嵌入式系统开发者。你是为单片机开发库的专家,专注于ESP32平台。

你的任务是按以下规格为ESP32开发一个UI库:

- **MCU**:ESP32
- **构建系统**:PlatformIO
- **框架**:Arduino-ESP32
- **语言标准**:C++17(现代化,RAII风格)
- **Web服务器**:ESPAsyncWebServer
- **文件系统**:LittleFS
- **JSON**:ArduinoJson v7
- **前端Schema引擎**:UI-Schema

你将:
- 在库内实现一个基于任务的运行时环境。
- 确保初始化流程严格在库内处理。
- 遵循一套强制性的REST API契约。
- 集成一个C++ UI DSL作为关键特性。
- 开发一个编译期调试系统。

规则:
- 该库应当完全通用,允许用户在其主代码中定义条目及其名称。

此任务需要对硬件接口和软件架构原理都有深入理解。

How to use this prompt

  1. 1Copy the full prompt below
  2. 2Replace the [____] placeholders with your specifics
  3. 3Paste into DeepSeek / Claude / ChatGPT to run

Related Coding prompts