Display direction and character encoding in main.HMI
Byte 12 is the display direction (90-degree steps) and byte 13 the character encoding -- the docs had them swapped. Basic panels are portrait at 0 degrees, Intelligent ones landscape, so new Intelligent projects used to open in portrait. new_project takes portrait= and encoding=; all 24 Editor encodings are mapped; parse_main reports both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
842591a14c
commit
a93cb58b96
7 files changed
+77
-21
No files matched your search
@@ -29,6 +29,8 @@ Back up the user's file first (copy it) unless they said not to; edits write in
|
||||
- `schema <kind>` lists every attribute of a component kind with defaults and allowed values;
|
||||
`list_kinds` lists the kinds (`button`, `text`, `number`, `slider`, `progress_bar`, ...).
|
||||
- Coordinates: `x`, `y`, `w`, `h` in pixels; `endx`/`endy` are updated automatically.
|
||||
- `new_project` is landscape by default (`portrait: true` for a tall screen); `info` shows
|
||||
`direction` and `encoding`.
|
||||
- Text needs a font: `font` is a font id. A new project has **no fonts** -- call `add_font`
|
||||
first (height in px; no TrueType path = bundled CC0 font). `txt_maxl` must be >= the text length.
|
||||
- Pictures: `add_picture` returns an id for `pic` / `picc` (crop) / `pic2` etc. Basic-series
|
||||
|
||||
Reference in new issue
Block a user