Add readme

This commit is contained in:
Daniel Flanagan 2024-10-09 16:13:17 -05:00
parent 3adf7aefb9
commit 5c965ad687
3 changed files with 19 additions and 3 deletions

View file

@ -14,10 +14,7 @@
default = pkgs.mkShell { default = pkgs.mkShell {
packages = with pkgs; [ packages = with pkgs; [
picotool picotool
elf2uf2-rs
probe-rs
rustup rustup
flip-link
]; ];
}; };
}); });

14
readme.md Normal file
View file

@ -0,0 +1,14 @@
# Raspberry Pi Pico 2 - with Rust!
You will need nix with flakes enabled. Then:
```shell_session
$ direnv allow # setup rustup and picotool
$ rustup show # install rustc, cargo, and the pico 2 toolchain
# plug in your pico 2 while holding the BOOTSEL button
$ cargo run --release
# this will probably fail the first and you will need to install whatever is missing with rustup
# then try again
```
Have fun!

5
rust-toolchain.toml Normal file
View file

@ -0,0 +1,5 @@
[toolchain]
channel = "1.80"
components = ["rustc", "cargo"]
targets = ["thumbv8m.main-none-eabihf"]
profile = "minimal"