Skip to content

Roadmap: options we haven't built

This page explains which AL80 features are still worth building, and why, given how little flash is left.

TL;DR

  • Two whole kinds of feature cost zero flash in the firmware: host-side app work, and 1-byte PK_* status packets over the USART3 link that's already wired.
  • The b75Pro enum has display opcodes we haven't sent yet: PK_LIGHT_MODE (0x08), a native 12/24-hour toggle, and a mode where the module draws a large typed letter.
  • Flash is the limit. The app has 56 KB. The linker script and nm on the linked .elf confirm that value. The board links against the 64 KB STM32F103x8 tier, minus the 8 KB the stm32duino bootloader takes. The "xB/128 KB" header comment in config.h doesn't change this. The latest build (v1.3.0/v25_locks) has ~2.37 KB left. That's why the list puts low-cost options first.

We collected these options on 2026-07-06 from the b75Pro sibling source, RIPPLE.bin, and this KB (knowledge base). Each item cites its source, so you can check it. None of them is invented.

Shipped since this survey

  • Per-layer encoder: done and confirmed on-device (v1.3.0). L0 is volume, L1 is RGB brightness, L2 is RGB hue, and L3 is media. It's a hardcoded encoder_update_user, not ENCODER_MAP. The encoder isn't in this board's Vial/VIA layout, so ENCODER_MAP wasn't visible.
  • Independent side LED bar: shipped in v1.2.0 (opcodes 0x46/47/48). The status-meter idea below builds on it.
  • Instant caps/num-lock LCD icons: shipped in v1.3.0. A gated led_update_kb hook pushes the icons when the state changes, so the 30s lag is gone. The eager debounce (sym_eager_pk) in the same release also removed the mute lag on a knob press.
  • Hotkey โ†’ LCD panel, host half: research/al80-hotkey-panel-switch-SPARC.md. This half has two parts in al80-studio, and both have device-free tests:

    • The inbound 0x4B reader (device.js โ†’ 'panelRequest').
    • The debounced cycler.jumpTo/togglePaused/step router (host/panel-request.js).

    The firmware half is now also built (see the consolidated-firmware item below).

  • Per-key audio-reactive RGB, host builders: research/al80-per-key-audio-reactive-SPARC.md. These are buildLiveLeds/buildLiveFrame/buildLiveStop in al80-studio's src/protocol.js (new opcode 0x49/0x4A), with device-free tests (test/protocol.test.mjs). The firmware 0x49 handler is now built too (see the consolidated-firmware item below). This phase also settled the old open question about the MCU part and the flash cap (see the TL;DR above and research/al80-buildout-discoveries.md).

  • Consolidated firmware: view-switch + hotkey + per-key keycodes: research/al80-firmware-view-switch-keycodes-SPARC.md (+ hotkey + per-key SPARCs). This is one custom-QMK build (firmware/al80-keyboard-src/, artifact AL80_CUSTOM_QMK_v28_keycodes.bin). It adds the first process_record_kb to this build (it had none before). The build has these parts:

    • View keys CUSTOM(22-24) send the host-free PK_GO announce over USART3.
    • PANEL_* keys CUSTOM(25-29) send that announce plus a raw_hid_send 0x4B to the host cycler.
    • The 0x49 per-key LED stream handler, g_live_rgb[], the indicators paint, and the idle timeout.

    It compiles clean, +452 B โ†’ 1,976 B of the 56 KB flash free. It's not flashed yet. The on-device check procedure is in research/al80-lcd-morning-playbook.md. The device-free wire-bytes test passes (firmware/test/firmware-wire.test.mjs). It checks that the announce bytes match both the SPARC A4 table and live protocol.js buildView, that al80_crc16 matches ga, and the 0x4B/0x49 framing.

  • Panel auto-cycle, the real always-on host: research/al80-lcd-panel-auto-cycle-SPARC.md. host/cycle-run.mjs + host/cycle.js now own the one Device. With no browser tab, they:

    • Rotate now-playing/weather/clock, with a dwell time for each panel.
    • Remove idle or stale panels from the rotation.
    • Jump to now-playing when the track changes.
    • Preempt to an alert card through the existing 127.0.0.1:7333 intake.

    The device-free tests pass (host/test/cycle.test.mjs, 7/7). Panels (host/panels/*.js) use a small poll/available/render interface. A future dashboard idea (Pomodoro, meeting countdown, wedding countdown) can join by adding one file to CYCLE_PANELS. Two tasks are still open: confirming rotation and banding on the device, and unifying autostart (repointing run-nowplaying.vbs). See research/al80-buildout-discoveries.md.

๐ŸŽ›๏ธ Low-cost firmware options

Option Flash Value Where
Screen power-off key: toggle the C9 enable pin to blank the LCD. This is the "sleep" the KB said didn't exist (it's a GPIO, not an opcode). ~100 B high al80.c:347
RGB layer indicator: tint a row for each active layer with rgb_matrix_indicators_advanced_kb(). ~300 B high KB ยงD6
RGB off on host sleep: RGB_MATRIX_SLEEP is not set. ~50 B med config.h
Host-free view-switch keys: keycodes that send PK_GO_HOME / PK_TOGGLE_PIC / PK_GO_GIF. โœ… BUILT (consolidated firmware, +452 B for all three keycode features; flash pending). ~200 B med mk25047.c:1412
Caps Word: standard QMK, not enabled. ~400 B med โ€”

๐Ÿ“Ÿ Native module features to probe first

These are worth testing before spending any flash on them, because the display module may already draw them (not confirmed on the AL80). Testing one means sending the command and watching the device. Source: b75Pro mk25047/uart_mod.h:26-59, keyboard_screen.c:217-390.

  • PK_LIGHT_MODE (0x08): a lighting icon/name on the homepage.
  • PK_SWITCH_TIME: a real 12/24-hour toggle. It would retire the whole host-side "12-hour hack."
  • PK_LETTER_SHOW / PK_LETTER_OFF: the module draws the last typed letter in a large size. It costs no pixels or framebuffer.

๐Ÿ–ผ๏ธ Zero-firmware-flash (host-side app)

  • Startup boot animation (mode-0 GIF): a vendor button we never exposed.
  • Live status cards on the LCD: weather โœ… and now-playing โœ… ship today on the always-on host (cycle-run.mjs, see "Shipped since this survey" above). The next calendar event, the wedding countdown (the bot already exists), and a Pomodoro ring aren't built. Each one only needs a new panels/*.js file that uses poll/available/render, plus a slot in CYCLE_PANELS. The host they depend on is done (research/al80-lcd-panel-auto-cycle-SPARC.md, which supersedes the original al80-always-on-host-SPARC.md plan).

The bar is 3 LEDs that are already in the matrix at indices 76โ€“78 (driver 1 / CS pin C8). They have the keylight flag, so today they show the same color as the keys. Overriding those three LEDs in rgb_matrix_indicators_advanced_kb() (~150 B, RAM ~3 B) would let them show a battery / caps / layer / notification meter. A bar-color command could copy the existing palette protocol (0x43-0x45).

๐Ÿšซ Not worth it (given the 56 KB ceiling)

  • Bluetooth / 2.4G on custom: high cost. Our own reverse engineering (ยงD5) shows wireless gives less control. The radio is a separate coprocessor that accepts only 3 inbound commands.
  • Autocorrect: the dictionary blob is too large when you're already removing features to fit.
  • Hardware RTC port: medium flash, and it needs the LSE/backup domain. The 60s host re-sync already keeps drift from mattering.
  • More framebuffer RGB effects: each effect uses exactly the flash you're trying to get back.

โญ Top 3

The per-layer encoder shipped (v1.3.0). These are the next options with the best value for each byte:

  1. Screen power-off key: ~100 B. It uses the C9 enable that al80.c already has. It also closes an item the KB wrongly said was impossible (it's a GPIO, not an opcode).
  2. Side bar as a status meter: the independent bar colour already shipped (v1.2.0). What's left is driving those three LEDs from the battery / caps / layer state (~150 B).
  3. Probe the undocumented PK opcodes: a 30-minute send-and-watch test, not a build. It could pay off the most of anything in the survey, at almost zero cost. It tells you which native features are real before you spend flash.