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:
parent
790597bae2
commit
2d64edf0d6
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user