1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-03-23 23:19:20 +02:00

Add more hints for compass exercise.

This commit is contained in:
Andrew Walbran 2023-03-17 17:17:11 +00:00
parent fe32d06862
commit 8513adfd3c

View File

@ -3,7 +3,12 @@
We will read the temperature from an I2C compass, and log the readings to a serial port.
Hint: check the documentation for the [`lsm303agr`](https://docs.rs/lsm303agr/latest/lsm303agr/) and
[`microbit-v2`](https://docs.rs/microbit-v2/latest/microbit/) crates.
[`microbit-v2`](https://docs.rs/microbit-v2/latest/microbit/) crates, as well as the
[micro:bit hardware](https://tech.microbit.org/hardware/). The LSM303AGR Inertial Measurement Unit
is connected to the internal I2C bus. TWI is another name for I2C, so the I2C master peripheral is
called TWIM. You can also look at the
[nRF52833 datasheet](https://infocenter.nordicsemi.com/pdf/nRF52833_PS_v1.5.pdf) if you want, but it
shouldn't be necessary for this exercise.
If you have time, try displaying it on the LEDs somehow too, or use the buttons somehow.