From 63cb00eb6cf80a98a214f8dab0a8f83a3fbd907c Mon Sep 17 00:00:00 2001 From: Nitin Saxena Date: Thu, 5 Aug 2021 16:19:34 +0530 Subject: [PATCH] adding code to run compass using lsm303agr --- src/15-led-compass/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/15-led-compass/README.md b/src/15-led-compass/README.md index e73b6db0e..12043d189 100644 --- a/src/15-led-compass/README.md +++ b/src/15-led-compass/README.md @@ -21,6 +21,8 @@ Let's get familiar with the readings of the magnetometer by running the followin ``` rust {{#include src/main.rs}} ``` +**NOTE:** If you have a newer version of the board, lsm303dlhc might not work for you use this [link](https://github.com/NitinSaxenait/compass_lsm303agr/blob/master/src/main.rs) to get the solution using +lsm303agr package. This `lsm303dlhc` module provides high level API over the LSM303DLHC. Under the hood it does the same I2C routine that you implemented in the last section but it reports the X, Y and Z values in a