openhmi-nx: decode, encode, render Nextion HMI projects; .tft research

Black-box reverse-engineered .HMI format (container, three checksums,
pages, all 31 component types, pictures, fonts), readable JSON, page
renderer matching Nextion Editor, demo project built from code and a
test suite (66 tests). See docs/COVERAGE.md for status.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mangavalkandClaude Opus 5.5 committed 2026-11-15 15:11:02 +01:00
commit 69e22cfb06
70 files changed
+25058

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
//Program.s runs once at power-on, before the first page is shown.
//Global variables can be declared here: int sys0=0
baud=115200
page 0
+53
View File
@@ -0,0 +1,53 @@
{
"crc_ok": true,
"model_id": "0xB23BC018",
"model": "NX4832T035_011",
"model_desc": "Nextion 3.5\" Basic 480x320",
"resources": [
[
"i",
"0.i"
],
[
"i",
"1.i"
],
[
"i",
"2.i"
],
[
"i",
"3.i"
],
[
"i",
"4.i"
],
[
"i",
"5.i"
],
[
"zi",
"0.zi"
],
[
"zi",
"1.zi"
],
[
"pa",
"0.pa"
],
[
"pa",
"1.pa"
],
[
"pa",
"2.pa"
]
],
"raw_hex": "a9664eb5600000000144210001034f0018c03bb200000000600000000b000000000000000200000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000006900000000000000302e6900000000006900000000000000312e6900000000006900000000000000322e6900000000006900000000000000332e6900000000006900000000000000342e6900000000006900000000000000352e6900000000007a69000000000000302e7a69000000007a69000000000000312e7a69000000007061000000000000302e7061000000007061000000000000312e7061000000007061000000000000322e706100000000"
}
+83
View File
@@ -0,0 +1,83 @@
{
"format": "nxhmi-folder-1",
"encoding": "latin-1",
"entries": [
{
"name": "Program.s",
"file": "Program.s"
},
{
"name": "0.zi",
"file": "resources/0.zi"
},
{
"name": "1.zi",
"file": "resources/1.zi"
},
{
"name": "0.is",
"file": "resources/0.is"
},
{
"name": "0.i",
"file": "resources/0.i"
},
{
"name": "1.is",
"file": "resources/1.is"
},
{
"name": "1.i",
"file": "resources/1.i"
},
{
"name": "2.is",
"file": "resources/2.is"
},
{
"name": "2.i",
"file": "resources/2.i"
},
{
"name": "3.is",
"file": "resources/3.is"
},
{
"name": "3.i",
"file": "resources/3.i"
},
{
"name": "4.is",
"file": "resources/4.is"
},
{
"name": "4.i",
"file": "resources/4.i"
},
{
"name": "5.is",
"file": "resources/5.is"
},
{
"name": "5.i",
"file": "resources/5.i"
},
{
"name": "0.pa",
"page": "pages/0_home.json"
},
{
"name": "1.pa",
"page": "pages/1_controls.json"
},
{
"name": "main.HMI",
"main": "main.HMI.json"
},
{
"name": "2.pa",
"page": "pages/2_gallery.json"
}
],
"model": "NX4832T035_011"
}
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.
File diff suppressed because it is too large. Load diff
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 449 B

Binary file not shown.
File diff suppressed because it is too large. Load diff
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 221 B

Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 252 B

Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 182 B

Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 167 B