tft: MCP tool build_tft, skill note, sample generator, notes for the next types

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
mangavalkandClaude Fable 5.2 committed 2026-11-16 18:25:18 +01:00
1 parent 99a5240af0
commit 0532a59120
7 files changed
+1194 -1

No files matched your search

+18
View File
@@ -168,3 +168,21 @@ Not done: sliders, touch cap and every drawing component (text, number, button,
gauge, waveform, picture, crop, checkbox, radio, QR code ...); string variables and string
functions; page backgrounds other than a solid colour; global (vscope) components; other
models, portrait, other series; and nothing has been loaded onto a display.
Samples: `tools/make_tft_samples.py` writes the 63 study projects (`tools/tft_samples.json`);
45 are reproduced, the other 18 are one-component projects of the types still to do (their
Editor output is needed again if the scratch copies are gone: ~45 s of Editor time each).
Starting points for the next component types (from those samples, not yet in the builder):
- Record slots after 14 follow the type's own attribute list; the RAM order is not the slot
order (text: font, isbr, pco, bco, xcen, ycen, pw, then txt with `txt_maxl + 1` bytes).
Kinds seen: 0x21/0x31 u8, 0x22/0x32 u16, 0x39 i32, 0x3F string (size = bytes reserved),
0x02 `txt_maxl`.
- Text draw section: `09 1C 08 x,y,w,h,<font>,<pco>,<bco>,<xcen>,<ycen>,1,<txt>,0,0,<isbr>,0`
then `09 13 04` with four `03 7FFF` numbers and a record reference; every `<..>` is a
record reference, so changing an attribute at run time needs no recompilation.
- Progress bar draw section: `<sys 0005/04>=<val>*w/100`, then two fills (`09 0D 04`) for the
filled and the empty part. Gauge: one `09 0A 08` line. QR code: one `09 08 08` line.
- Slider and touch cap add the init line `09 16 04 1`; slider has a `slide` event label.
- Object flag byte: 0x37 types with a rectangle, 0x27 timer and touch cap, 0x07 variable.