Files
tfaour 1dd02da70a Add QR-code WiFi onboarding screen
Vendors two small MIT/BSD-3-Clause libraries rather than hand-rolling
either: Nayuki's qrcodegen (QR matrix generation) and Waveshare's Font24
bitmap table from their e-Paper repo (same repo the epd7in3e driver came
from) for rendering readable text on the panel.

qr_onboarding_show() builds a standard WIFI:T:WPA;S:...;P:...;; payload,
rasterizes the QR module matrix plus the SSID and password as plaintext
underneath (for anyone provisioning from a device that can't scan a QR)
onto a malloc'd frame buffer, and pushes it to the panel via
epd_display_buffer(). The buffer is heap-allocated on demand rather than
statically reserved, since 192KB held permanently in BSS would eat into
the RAM budget the HTTP fetch path (task 6) is specifically trying to keep
free.

Wired into wifi_provisioning_start() before the softAP comes up, so the
join instructions are already on-screen by the time the network is
joinable.
2026-07-18 11:20:43 -04:00
..
2026-07-18 11:20:43 -04:00
2026-07-18 11:20:43 -04:00

epaper_fonts

Vendored fonts.h + font24.c from Waveshare's e-Paper repo (RaspberryPi_JetsonNano/c/lib/Fonts/), used unmodified to render the SSID and password text on the QR onboarding screen. Originally an STMicroelectronics font table (BSD-3-Clause) redistributed by Waveshare alongside their MIT-licensed driver code -- see the header comment in each file for the full license text.

Only font24.c is compiled; fonts.h also declares the other sizes (Font8/Font12/Font16/Font20/the CN fonts) Waveshare ships but this project doesn't use, left in place unmodified rather than trimmed down.