Render QR codes pixel-exact with an own encoder

nxhmi.qr is a dependency-free QR encoder. Measured in the Editor
simulator: numeric/alphanumeric/byte mode by content, level L, mask 0,
smallest version; scaled to w - 2*dis by width (not clipped to h), last
column run one pixel narrower, logo centred, nothing when too small.
Basic rendering is now 20/20 pixel-exact.

Also: unknown component kinds give a clean CLI error instead of a
traceback.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mangavalkandClaude Opus 5.5 committed 2026-11-15 16:17:23 +01:00
1 parent f0bcc608b1
commit 842591a14c
10 files changed
+429 -9

No files matched your search

+3 -1
View File
@@ -42,4 +42,6 @@ Back up the user's file first (copy it) unless they said not to; edits write in
- Writes projects for Nextion Editor 1.68.2; the user still compiles/uploads the `.tft` with the
Editor (or Nexus for uploading). nxhmi cannot compile `.tft` files yet.
- Rendering: QR codes are a placeholder, Intelligent-only components are not drawn.
- Rendering: Intelligent-only components are not drawn yet.
- QR codes on Basic displays: long texts can exceed the display RAM; the Editor then refuses to
compile ("not enough memory ... QR code"). Keep QR texts short there and compile to check.