LIS3DH / STMicroelectronics / MEMS motion sensor, 3-axis accelerometer library
Diff: LIS3DH.h
- Revision:
- 1:d4d569952436
- Parent:
- 0:5d5aac272642
- Child:
- 4:64dac49da306
diff -r 5d5aac272642 -r d4d569952436 LIS3DH.h --- a/LIS3DH.h Fri Aug 29 13:27:20 2014 +0000 +++ b/LIS3DH.h Sun Sep 07 01:26:25 2014 +0000 @@ -7,7 +7,7 @@ * http://www.page.sannet.ne.jp/kenjia/index.html * http://mbed.org/users/kenjiArai/ * Created: July 14th, 2014 - * Revised: August 29th, 2014 + * Revised: September 7th, 2014 * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE @@ -181,6 +181,12 @@ */ uint8_t data_ready(); + /** Set I2C clock frequency + * @param freq. + * @return none + */ + void frequency(int hz); + /** Read register (general purpose) * @param register's address * @return register data