1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-04-22 23:58:39 +02:00

Format hints as bullet-points.

This commit is contained in:
Andrew Walbran 2023-03-24 17:45:09 +00:00
parent d513109b92
commit 956c137e51

View File

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