简体中文 · English
# AI Agent Development Guide This guide is for AI coding assistants. `AGENTS.md` is the only mandatory starting document; read this guide for code work and route to hardware or engineering references only when the task requires them. ## Establish context 1. Read `AGENTS.md` and follow its task routing. Do not load every README or the entire hardware guide by default. 2. Run `git status --short --branch` and preserve existing changes. 3. Read affected public headers, implementations, and neighboring code. Do not infer this board's behavior from a generic ESP32-C3 board. 4. Search `origin/demo/*` for a relevant example and reuse only applicable design ideas. 5. Decompose the request into inputs, outputs, state, tasks, persistence, memory budget, and failure behavior before choosing `main` or `components/bsp`. 6. Run focused checks while iterating and `./tools/validate.sh` before delivery. Keep hardware checks explicit. ## Source-of-truth priority ```text schematic / PCB / board revision / measurement > components/bsp/include/bsp_pins.h > BSP public headers and implementation > docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md > README and demo applications ``` The repository does not currently contain schematic or PCB source. Report unknown revisions, wiring, polarity, registers, and unused GPIO connections; request evidence instead of substituting another board's values. ## Application/BSP boundary ```text requirement └─ main/ pages, state machines, animation, app tasks, assets └─ components/bsp/include/ stable board APIs └─ components/bsp/src/ buses, devices, and driver details └─ bsp_pins.h pin and hardware-parameter source of truth ``` A new page implements the `enter`, `exit`, and `key` interface in `main/demo_