1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-01-20 21:18:26 +02:00

Explain a bit about example and how to run it.

This commit is contained in:
Andrew Walbran 2023-03-03 18:03:01 +00:00
parent 790597bae2
commit 2d64edf0d6

View File

@ -1,5 +1,18 @@
# Raw MMIO
Most microcontrollers access peripherals via memory-mapped IO. Let's try turning on an LED on our
micro:bit:
```rust,editable,compile_fail
{{#include examples/src/bin/mmio.rs:Example}}
```
<details>
Run the example with:
```sh
cargo embed --bin mmio
```
</details>