Setup - Using a Template
The easiest way to get started with rumcake
is with one of the provided templates.
Cloning a template
To start with a template, you must install cargo-generate, then run the following command to choose a template:
Template structure
Generally, rumcake
templates provides the following:
.cargo/config.toml
file, which configures your Cargo runner (usingprobe-rs
), specific to your chip.- A
Cargo.toml
file, which already contains the dependencies and feature flags needed to compile the firmware.- For
rumcake
, a feature flag corresponding to the chosen chip will be enabled, in addition to other extra features.
- For
- A
src/main.rs
file, which contains a partially completedrumcake
keyboard implementation. - A
README.md
file with information on how to compile and flash the firmware to your chip. - A
rust-toolchain.toml
file, containing information about the Rust toolchain that will be used for your Cargo workspace, including the build target for your chip and toolchain version. - A
memory.x
file, used bycortex-m-rt
, defining the memory layout of your target chip.
To learn how to add extra features to your keyboard, see the templates or refer to the “Features” section in the sidebar.
Next steps
After you have finished cloning a template, feel free to continue setting up your keyboard matrix and layout.
Depending on the chosen template, you will also need to search for // TODO
comments to address before
building and flashing your firmware.