Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aunyks/pi-pico-rs
Rust on the Raspberry Pi Pico.
https://github.com/aunyks/pi-pico-rs
Last synced: 23 days ago
JSON representation
Rust on the Raspberry Pi Pico.
- Host: GitHub
- URL: https://github.com/aunyks/pi-pico-rs
- Owner: aunyks
- Created: 2022-02-08T03:43:53.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-29T14:30:53.000Z (over 2 years ago)
- Last Synced: 2024-04-23T14:10:58.311Z (8 months ago)
- Language: Rust
- Size: 9.77 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pi-pico-rs
Program a [Raspberry Pi Pico](https://www.raspberrypi.com/products/raspberry-pi-pico/) with pure Rust.
## Get Started
1. 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
```2. Install the Rust port of ELF2UF2. This is used for flashing the program to the board
```
cargo install elf2uf2-rs
```3. Install [Clippy](https://rust-lang.github.io/rust-clippy/). This is used to help lint the Rust code
```
rustup component add clippy
```4. Install [just](https://github.com/casey/just). This is used for running certain tasks, (`just build` will build the program, for example)
```
cargo install just
```5. Build the project to make sure everything's setup
```
just build
```## Flashing the program to the Pico
To flash the program to the Pico:
1. Plug in the Pico to your host machine in bootloader mode (with the on-board button held down)
2. Run `just flash`## Additional Resources
- The [rp-pico](https://github.com/rp-rs/rp-hal/tree/main/boards/rp-pico) crate
- The [rp-hal](https://github.com/rp-rs/rp-hal) crate