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%
Find a file
orca 35e82437df Fix knob direction: clockwise is volume up
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>
2026-10-18 10:31:54 -04:00
keyboards/rk/r75 Fix knob direction: clockwise is volume up 2026-10-18 10:31:54 -04:00
sim R75 cyberdeck firmware: stock keymap, custom effects, host protocol 2026-10-18 01:58:31 -04:00
tools Fix knob direction: clockwise is volume up 2026-10-18 10:31:54 -04:00
.gitignore R75 cyberdeck firmware: stock keymap, custom effects, host protocol 2026-10-18 01:58:31 -04:00
build.sh R75 cyberdeck firmware: stock keymap, custom effects, host protocol 2026-10-18 01:58:31 -04:00
flash.sh R75 cyberdeck firmware: stock keymap, custom effects, host protocol 2026-10-18 01:58:31 -04:00
README.md Fix knob direction: clockwise is volume up 2026-10-18 10:31:54 -04:00
stock-keymap.json R75 cyberdeck firmware: stock keymap, custom effects, host protocol 2026-10-18 01:58:31 -04:00

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.py generates keymap_layers.h from stock-keymap.json, which tools/dump_stock_keymap.py read 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.