docs(dev): add AI environment bootstrap (#20)
* docs(dev): add AI environment bootstrap * docs(ui): document CJK font pitfall
This commit is contained in:
1 parent
55f83433e8
commit
ae2a840131
18 files changed
+717
-42
No files matched your search
@@ -6,6 +6,7 @@
|
||||
|
||||
- Write C with four-space indentation and K&R braces, following neighboring files. Use `snake_case`, `BSP_*` public constants, `s_` file-local state, `bsp_` public BSP APIs, and `demo_<feature>_<action>` demo entry points. Prefer `static` for internal symbols.
|
||||
- Keep UI text and default documentation in English. Explanatory source comments may use Chinese while retaining established English technical terms.
|
||||
- The baseline enables only LVGL Montserrat 14 and 20, which do not contain CJK glyphs. Chinese UTF-8 text therefore renders as missing-glyph boxes; changing source-file encoding does not fix it. Before adding Chinese UI text, compile and select a CJK font that covers every displayed character, prefer a glyph subset over a full font, configure a suitable fallback for mixed-language text, budget Flash and internal RAM, and verify the result on the device.
|
||||
- Put reusable hardware behavior in `components/bsp`; keep menus, animations, product interaction, and validation pages in `main`.
|
||||
- Document non-trivial functions, state, ownership, blocking behavior, task context, initialization order, failure values, register choices, timing, synchronization, and hardware-specific constants. Explain why, not merely what.
|
||||
- Add or update tests with code changes. If automation is not practical, record the test gap and exact manual validation path.
|
||||
|
||||
Reference in new issue
Block a user