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 LIS3DH by
Diff: LIS3DH.h
- Revision:
- 8:0999d25ed7bc
- Parent:
- 7:50ac3372def2
- Child:
- 9:c32d2b25d4c2
--- a/LIS3DH.h Sat Dec 12 06:06:43 2015 +0000
+++ b/LIS3DH.h Wed Aug 23 09:26:06 2017 +0000
@@ -3,17 +3,11 @@
* LIS3DH MEMS motion sensor: 3-axis "nano" accelerometer, made by STMicroelectronics
* http://www.st-japan.co.jp/web/jp/catalog/sense_power/FM89/SC444/PF250725
*
- * Copyright (c) 2014,'15 Kenji Arai / JH1PJL
+ * Copyright (c) 2014,'15,'17 Kenji Arai / JH1PJL
* http://www.page.sannet.ne.jp/kenjia/index.html
* http://mbed.org/users/kenjiArai/
- * Created: July 14th, 2014
- * Revised: December 12th, 2015
- *
- * 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
- * AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
- * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ * Created: July 14th, 2014
+ * Revised: August 23rd, 2017
*/
#ifndef LIS3DH_H
@@ -234,7 +228,8 @@
void initialize(uint8_t, uint8_t, uint8_t);
void read_reg_data(char *data);
- I2C _i2c;
+ I2C *_i2c_p;
+ I2C &_i2c;
private:
#if OLD_REV
@@ -249,3 +244,4 @@
};
#endif // LIS3DH_H
+
