LechevSpace / embassy-pico-template

Raspberry Pi Pico template with the Embassy framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Embassy RP Pico template

sponsor-us

Setup

Use a debug probe like a second Raspberry Pi Pico running picoprobe.uf2 or Raspberry Pi Debug probe running debugprobe.uf2 (a CMSIS v2 compatible firmware).

Running

To run the firmware on the Pico you need to specify the target, disable default features and enable the firmware feature like so: cargo run --target thumbv6m-none-eabi --no-default-features -F firmware

Or use the provided alias in ./.cargo/config.toml:

cargo run-firmware

Logging

By default we use defmt for logging and include a variaty of macros for both log & defmt seemless integration in your project.

Use the DEFMT_LOG environment variable to set the necessary verbosity. DEFMT_LOG=info is the default which can be tweaked in ./.cargo/config.toml.

Testing

Run test as regular crate or project by using cargo test which will use your host target and the std feature (enabled by default)

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

Raspberry Pi Pico template with the Embassy framework

License:Apache License 2.0


Languages

Language:Rust 100.0%