mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-04-28 01:49:05 +02:00
Get compass solution working and add more information.
This commit is contained in:
parent
17bbf5f0b7
commit
82f4dab523
@ -17,3 +17,11 @@ use microbit::{hal::uarte::{Baudrate, Parity, Uarte}, Board};
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
See the serial output with
|
||||||
|
|
||||||
|
```sh
|
||||||
|
picocom --baud 115200 --imap lfcrlf /dev/ttyACM0
|
||||||
|
```
|
||||||
|
|
||||||
|
Use Ctrl+A Ctrl+Q to quit picocom.
|
||||||
|
@ -1,2 +1,5 @@
|
|||||||
[build]
|
[build]
|
||||||
target = "thumbv7em-none-eabihf" # Cortex-M4F
|
target = "thumbv7em-none-eabihf" # Cortex-M4F
|
||||||
|
|
||||||
|
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
|
||||||
|
rustflags = ["-C", "link-arg=-Tlink.x"]
|
||||||
|
@ -1,2 +1,8 @@
|
|||||||
[default.general]
|
[default.general]
|
||||||
chip = "nrf52833_xxAA"
|
chip = "nrf52833_xxAA"
|
||||||
|
|
||||||
|
[debug.gdb]
|
||||||
|
enabled = true
|
||||||
|
|
||||||
|
[debug.reset]
|
||||||
|
halt_afterwards = true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user