Custom Vial firmware for the Royal Kludge R75: stock keymap, cyberdeck RGB effects, host protocol for alerts and text scrolling
- C 48.6%
- C++ 26.9%
- Python 19%
- Shell 5.2%
- Makefile 0.3%
QMK's encoder driver reads B7/B6 the other way round from RK's firmware, so copying stock's (VOLU, VOLD) pair reversed the knob. The generator now swaps the pair. The live board was fixed through Vial's set-encoder. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| keyboards/rk/r75 | ||
| sim | ||
| tools | ||
| .gitignore | ||
| build.sh | ||
| flash.sh | ||
| README.md | ||
| stock-keymap.json | ||
R75 cyberdeck firmware
Custom Vial firmware for a wired Royal Kludge R75
(USB 342d:e484, Westberry WB32FQ95, wb32-dfu bootloader), built on
mossbed/r75 (vialrgb branch) and checked
against RK's own R75 source.
What's different from the community firmware
- Keymap = RK stock.
tools/gen_keymap.pygenerateskeymap_layers.hfromstock-keymap.json, whichtools/dump_stock_keymap.pyread off the keyboard. Every key and Fn combo matches factory, except:- Factory reset moves from Fn+Space to Fn+RShift+Space.
- Lighting keys use the RGB-matrix keycodes.
- RK's Bluetooth-only keys do nothing.
- The knob directions are swapped (QMK reads the encoder the other way round from RK's firmware).
- Caps Lock LED on C4 (RK's pin). The vialrgb branch uses C9, which is a matrix column (Home/PgUp/PgDn/→/knob).
- Five custom effects in
rgb_matrix_user.inc: Synthwave, Glitch, Heartbeat, Plasma and Scanner. - Host protocol (raw HID command 0xC7): custom effect select, colour, brightness and
speed for any effect, plus alert overlays the keyboard draws over the running effect.
See
keymap.c. - VialRGB direct mode for per-key colour from the PC (the herdr plugin's text scroller).
Build / flash / restore
./build.sh # -> build/rk_r75_vial.bin (needs ~/.local/src/vial-qmk + ~/.local/share/qmk-venv)
# keyboard into DFU: Fn + Right Shift + Esc (or hold Esc while plugging in, once on this firmware)
./flash.sh # flash build/rk_r75_vial.bin
./flash.sh --stock # put RK's factory firmware back (backup in ~/.local/share/cyberdeck/r75-backup/)
sim/ renders the custom effects and the scroller to PNGs on the PC (sim.c runs
rgb_matrix_user.inc against QMK's real lib8tion/colour code), so effects can be
checked without flashing.