From aa1036af665ecfe2156ecdf11c71d22dab59b987 Mon Sep 17 00:00:00 2001 From: Andrew Walbran <qwandor@google.com> Date: Fri, 24 Mar 2023 17:50:03 +0000 Subject: [PATCH] Add more hints for bare metal morning exercise. --- src/exercises/bare-metal/compass.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/exercises/bare-metal/compass.md b/src/exercises/bare-metal/compass.md index a29024ae..28eac1b0 100644 --- a/src/exercises/bare-metal/compass.md +++ b/src/exercises/bare-metal/compass.md @@ -10,6 +10,12 @@ Hints: [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. +- The LSM303AGR driver needs something implementing the `embedded_hal::blocking::i2c::WriteRead` + trait. The + [`microbit::hal::Twim`](https://docs.rs/microbit-v2/latest/microbit/hal/struct.Twim.html) struct + implements this. +- You have a [`microbit::Board`](https://docs.rs/microbit-v2/latest/microbit/struct.Board.html) + struct with fields for the various pins and peripherals. - 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.