mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-04-25 16:54:32 +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
|
# 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
|
```rust,editable,compile_fail
|
||||||
{{#include examples/src/bin/mmio.rs:Example}}
|
{{#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