Add readme
This commit is contained in:
parent
3adf7aefb9
commit
5c965ad687
3 changed files with 19 additions and 3 deletions
|
@ -14,10 +14,7 @@
|
|||
default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
picotool
|
||||
elf2uf2-rs
|
||||
probe-rs
|
||||
rustup
|
||||
flip-link
|
||||
];
|
||||
};
|
||||
});
|
||||
|
|
14
readme.md
Normal file
14
readme.md
Normal 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
5
rust-toolchain.toml
Normal file
|
@ -0,0 +1,5 @@
|
|||
[toolchain]
|
||||
channel = "1.80"
|
||||
components = ["rustc", "cargo"]
|
||||
targets = ["thumbv8m.main-none-eabihf"]
|
||||
profile = "minimal"
|
Loading…
Reference in a new issue