mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-06-06 17:46:16 +02:00
Add other files for compass exercise to exercise page.
This commit is contained in:
parent
8513adfd3c
commit
e2d7bc56ec
@ -12,17 +12,35 @@ shouldn't be necessary for this exercise.
|
||||
|
||||
If you have time, try displaying it on the LEDs somehow too, or use the buttons somehow.
|
||||
|
||||
`src/main.rs`:
|
||||
```rust,compile_fail
|
||||
{{#include compass/src/main.rs:top}}
|
||||
use microbit::{hal::uarte::{Baudrate, Parity, Uarte}, Board};
|
||||
|
||||
{{#include compass/src/main.rs:main}}
|
||||
// TODO
|
||||
|
||||
{{#include compass/src/main.rs:loop}}
|
||||
// TODO
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
`Cargo.toml` (you shouldn't need to change this):
|
||||
```toml
|
||||
{{#include compass/Cargo.toml}}
|
||||
```
|
||||
|
||||
`Embed.toml` (you shouldn't need to change this):
|
||||
```toml
|
||||
{{#include compass/Embed.toml}}
|
||||
```
|
||||
|
||||
`.cargo/config.toml` (you shouldn't need to change this):
|
||||
```toml
|
||||
{{#include compass/.cargo/config.toml}}
|
||||
```
|
||||
|
||||
See the serial output with
|
||||
|
||||
```sh
|
||||
|
Loading…
x
Reference in New Issue
Block a user