https://github.com/simmsb/rusty-dilemma
Firmware for the Dilemma (or really any rp2040 split keyboard) written in Rust
https://github.com/simmsb/rusty-dilemma
embassy firmware keyboard keyboard-firmware rust split-keyboards
Last synced: about 1 year ago
JSON representation
Firmware for the Dilemma (or really any rp2040 split keyboard) written in Rust
- Host: GitHub
- URL: https://github.com/simmsb/rusty-dilemma
- Owner: simmsb
- License: mit
- Created: 2023-04-15T14:16:13.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-22T16:32:13.000Z (over 1 year ago)
- Last Synced: 2025-04-21T02:14:17.580Z (about 1 year ago)
- Topics: embassy, firmware, keyboard, keyboard-firmware, rust, split-keyboards
- Language: Rust
- Homepage:
- Size: 518 KB
- Stars: 25
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Rust firmware for the [dilemma v2](https://github.com/Bastardkb/Dilemma) keyboard
https://github.com/simmsb/rusty-dilemma/assets/5330444/2e6345b6-a52b-436a-b9c9-535a1fc93490
Rusty dilemma is firmware for the Dilemma v2 split keyboard written in Rust
using the Embassy framework.
This firmware does a fair amount of 'fun' things such as supporting an external
display (and using the awesome Slint GUI library to do the drawing (and
anti-aliased fonts are nice)), also the per key rgb animations are pretty damn
pretty in my opinion :)
## Layout

## Features
- Normal keypresses, mod taps, layers, chords, mouse keys
- Cirque trackpad support, with support for using it to scroll
- Some pretty neopixel animations (that sync between sides, and transition smoothly)
- Support for a st7789 display, using slint to render the UI
- Single firmware binary, everything works no matter which side is plugged in
- Double tapping the update button puts the mcu into dfu mode
- The device pretends to be a RP Pico and supports being put into DFU mode by
`picotool`
## Building
You'll need cargo and picotool installed
- `cargo build --release -Zbuild-std=core,alloc,panic_abort -Zbuild-std-features=panic_immediate_abort`
+ It's fine to use just `cargo build --release` here, the extra parameters just make the binary a bit smaller.
- `picotool load -f ./target/thumbv6m-none-eabi/release/boot`
+ The bootloader only needs flashing the first time
- `picotool load -f ./target/thumbv6m-none-eabi/release/binary`
- `picotool reboot`
(You can use either the nix flake or install picotool yourself)
## Keymaps
You can use https://github.com/simmsb/keylayout to generate key layouts (and
also generate previes of them), check out the [one I use](layouts/rusty-dilemma.kl)