talira

Keyboard firmware written in Rust

open sourceMIT OR Apache-2.0free

RMK is keyboard firmware written in Rust, built on Embassy. It runs on STM32, nRF52, nRF54, RP2040, RP2350, ESP32, Puya PY32 and SiFli SF32LB52 chips, wired over USB or wireless over Bluetooth LE with reconnection and several hosts. A keyboard is described in one keyboard.toml file, which the official template compiles in GitHub Actions, or built from the rmk crate's Rust API for full control. Keymaps can be changed live through Vial (over BLE too) or RMK's own experimental Rynk protocol, and it supports layers, macros, split keyboards, dongles, low-power scanning, rotary encoders, trackpads, optical mouse sensors and displays. Firmware is flashed with a UF2 bootloader or a debug probe.

Problems it solves

  • write firmware for my custom mechanical keyboard in Rust
  • build a wireless Bluetooth split keyboard with an nRF52840
  • change my keyboard's keymap live without reflashing it
  • configure keyboard firmware from a single config file instead of writing C
  • compile firmware for my keyboard in the cloud without setting up a toolchain
  • keyboard firmware that runs on an ESP32 with Bluetooth
  • make a keyboard battery last for months on BLE

Features

  • keyboard.toml configuration, or the rmk crate's Rust API
  • cloud compilation in GitHub Actions from the project template
  • Vial support for live keymap changes, also over BLE
  • Rynk, RMK's own keymap protocol (experimental)
  • BLE with automatic reconnection and multiple devices
  • split keyboards and dongles
  • layers, macros, mouse keys, media keys
  • rotary encoders, trackpads, optical mouse sensors, joysticks and displays
  • low-power async matrix scanning
  • about 2 ms latency wired and 10 ms wireless

Alternatives

The same job

These do what RMK does.

  1. QMK Firmware Open-source keyboard firmware for Atmel AVR and Arm USB families
  2. ZMK Modern, open source keyboard firmware
  3. KMK Clackety Keyboards Powered by Python
  4. Vial Open-source cross-platform GUI and QMK fork for configuring your keyboard in real time

Compare RMK with the top 3