1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-06-10 19:37:31 +02:00

Explain how to run other examples too.

This commit is contained in:
Andrew Walbran 2023-03-09 12:33:19 +00:00
parent 53223d3581
commit 17bbf5f0b7
3 changed files with 18 additions and 0 deletions

View File

@ -14,4 +14,10 @@ Board support crates provide a further level of wrapping for a specific board fo
itself. itself.
* `microbit-v2` includes a simple driver for the LED matrix. * `microbit-v2` includes a simple driver for the LED matrix.
Run the example with:
```sh
cargo embed --bin board_support
```
</details> </details>

View File

@ -14,4 +14,10 @@ from [`embedded-hal`](https://crates.io/crates/embedded-hal).
* HAL crates exist for many Cortex-M and RISC-V devices, including various STM32, GD32, nRF, NXP, * HAL crates exist for many Cortex-M and RISC-V devices, including various STM32, GD32, nRF, NXP,
MSP430, AVR and PIC microcontrollers. MSP430, AVR and PIC microcontrollers.
Run the example with:
```sh
cargo embed --bin hal
```
</details> </details>

View File

@ -20,4 +20,10 @@ files.
* If you `cargo install cargo-binutils` then you can run * If you `cargo install cargo-binutils` then you can run
`cargo objdump --bin pac -- -d --no-show-raw-insn` to see the resulting binary. `cargo objdump --bin pac -- -d --no-show-raw-insn` to see the resulting binary.
Run the example with:
```sh
cargo embed --bin pac
```
</details> </details>