Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of ADXL345 by
Diff: ADXL345.h
- Revision:
- 6:5fb29534a6cf
- Parent:
- 5:122a504fcfa3
- Child:
- 7:839128c6e20a
--- a/ADXL345.h Sat Sep 29 14:15:24 2012 +0000 +++ b/ADXL345.h Thu Nov 01 15:54:31 2012 +0000 @@ -90,6 +90,16 @@ #define ADXL345_12HZ5 0x07 #define ADXL345_6HZ25 0x06 +// DATA_FORMAT register +#define ADXL345_2G 0x00 +#define ADXL345_4G 0x01 +#define ADXL345_8G 0x02 +#define ADXL345_16G 0x03 +#define ADXL345_LJUST 0x04 +#define ADXL345_FULL_RES 0x08 +#define ADXL345_INT_LOW 0x10 +#define ADXL345_SELF_TEST 0x80 + // read or write bytes #define ADXL345_READ 0xA7 #define ADXL345_WRITE 0xA6 @@ -222,7 +232,7 @@ int setDataRate(char rate); - /** + /** * Get the current offset for a particular axis. * * @param axis 0x00 -> X-axis