Mercurial > public > ostc4
diff Small_CPU/Inc/compass_LSM303D.h @ 357:c3d511365552
Add Support for new end-2019 hardware:
support LSM303AGR compass (Not yet working!)
cleanup compass code a bit
author | heinrichsweikamp |
---|---|
date | Sat, 23 Nov 2019 18:39:50 +0100 |
parents | 5f11787b4f42 |
children |
line wrap: on
line diff
--- a/Small_CPU/Inc/compass_LSM303D.h Sat Nov 23 15:36:38 2019 +0100 +++ b/Small_CPU/Inc/compass_LSM303D.h Sat Nov 23 18:39:50 2019 +0100 @@ -27,7 +27,7 @@ /* Exported constants --------------------------------------------------------*/ #define WHO_AM_I 0x0F // device identification register - default value -#define WHOIAM_VALUE (0x49) // Who Am I default value +#define WHOIAM_VALUE_LSM303D 0x49 // Who Am I default value #define ADDR_OUT_TEMP_L 0x05 #define ADDR_OUT_TEMP_H 0x06