Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why this matters to users
Entering a long URL or copying a pairing code from an e-reader into a phone is unnecessarily awkward. A scannable QR code makes account setup, sharing a link or opening a companion website much easier, especially on a device without a touchscreen keyboard.
During application development, a guest-side QR implementation caused the desktop pairing test to stall while performing the encoding in the RV32 interpreter. The integrated native implementation instead reused the firmware's existing QR encoder. A pairing QR code was successfully scanned on a Picco, and web sign-in QR codes were subsequently exercised on both X3 and Picco.
This is why a small host-backed bitmap service is useful: every application can reuse the native encoder instead of carrying its own encoding code and spending interpreted CPU time on the same task. The isolated PR tests the interface, not the encoder itself.
Summary
Add an optional host-backed QR bitmap capability for applications that need to display links, pairing codes, or other small payloads without embedding a QR encoder in each guest.
Validation
Full upstream make test passed with the pinned FreeInk SDK, including a real guest running against both an unsupported host and a mock encoder. The mock checks exact payload dispatch, output layout, short buffers and rejection before dispatch. This PR does not implement a QR encoder or firmware host integration.