pi-pico-rs
Program a Raspberry Pi Pico with pure Rust.
Get Started
- Install the latest version of Rust and the
thumbv6m-none-eabi
target. This is the primary language we use to write programs for the Pico
https://www.rust-lang.org/tools/install
rustup self update
rustup update stable
rustup target add thumbv6m-none-eabi
- Install the Rust port of ELF2UF2. This is used for flashing the program to the board
cargo install elf2uf2-rs
- Install Clippy. This is used to help lint the Rust code
rustup component add clippy
- Install just. This is used for running certain tasks, (
just build
will build the program, for example)
cargo install just
- Build the project to make sure everything's setup
just build
Flashing the program to the Pico
To flash the program to the Pico:
- Plug in the Pico to your host machine in bootloader mode (with the on-board button held down)
- Run
just flash