All five display series; exact component colours; Editor's literal rule for format 4
- 15 more models (Discovery, Enhanced, Edge, NX8048P043): ids and series bytes 1/6/100 from the Editor; native orientation per series; Discovery/Enhanced/Edge use the Basic templates - per series picture format and storage direction: Enhanced like Basic, Edge format 4, Discovery format 3 (20 zero bytes + raw RGB565) always stored row by row; fonts likewise - component colours are scaled (v*255//31) on every series -- exact against the canvas with zero tolerance; format-0 pictures stay bit-replicated - format-4 encoder: literal pixels when the next 8 runs cover <= 10 pixels (7+ runs), 8 pixels at a time -- reproduces the Editor on 12 designed patterns plus the 28 earlier samples Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
922ca21f0f
commit
ec35ceb615
9 files changed
+145
-62
No files matched your search
+4
-5
@@ -16,7 +16,7 @@ byte for byte, or a file written by nxhmi was opened in the Editor and showed th
|
||||
| Pictures | **complete**: format 0 (Basic) and format 4 (Intelligent, with alpha; run-length or JPEG for quality < 100), all display directions |
|
||||
| Fonts | **complete**: single- and multi-byte encodings (GB2312, Big5, Shift-JIS, KS C 5601, UTF-8), black/white and the anti-aliasing flag, overhanging glyphs, all display directions; generation from TrueType for all of them |
|
||||
| Rendering pages like the Editor | **pixel-identical** for every Basic component and 9 of 11 Intelligent-only ones; ComboBox and Switch approximate at anti-aliased edges |
|
||||
| New projects from scratch | `project.new_project(model)` for 12 Basic/Intelligent models; the generated demo is byte-identical to the Editor's re-save |
|
||||
| New projects from scratch | `project.new_project(model)` for all 27 models of the 5 series; the generated demo is byte-identical to the Editor's re-save |
|
||||
| Compiling `.tft` firmware | **research only** -- not possible yet |
|
||||
|
||||
## How the percentages in the README are counted
|
||||
@@ -93,7 +93,6 @@ byte for byte, or a file written by nxhmi was opened in the Editor and showed th
|
||||
### `.HMI` side
|
||||
| Item | Notes |
|
||||
|---|---|
|
||||
| Other display series | Discovery / Enhanced / Edge not sampled; only Basic + Intelligent templates |
|
||||
| Display direction | byte 12 decoded and written (`new_project(portrait=...)`); picture order verified for all four (format 4); font glyph order verified for 0° and 90° |
|
||||
| Some header fields | main.HMI bytes 8, 13, 36, 0x41; page header 21/23; entry bytes 25-27 |
|
||||
| Font name shown in the Editor's Fonts panel | cosmetic, generated fonts show an odd label |
|
||||
@@ -118,6 +117,6 @@ byte for byte, or a file written by nxhmi was opened in the Editor and showed th
|
||||
| Licensing | every `.tft` embeds Nextion's firmware files; the repo must never ship them -- a builder would read them from the user's own Editor installation |
|
||||
|
||||
## Suggested next steps
|
||||
1. Intelligent picture format 4 (needed for Intelligent displays).
|
||||
2. `.tft`: try the remaining trailer-checksum ideas listed in NOTES.md; then the compiled page format.
|
||||
3. Sample the other display series to confirm templates and picture order.
|
||||
1. `.tft`: try the remaining trailer-checksum ideas listed in NOTES.md; then the compiled page format.
|
||||
2. The anti-aliasing routine of Intelligent rounded shapes (switch knob/track, ComboBox).
|
||||
3. Picture quality < 100 on Edge (JPEG variant) -- not tried.
|
||||
Reference in new issue
Block a user