-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathAdafruit_LSM6DS3.h
42 lines (34 loc) · 963 Bytes
/
Adafruit_LSM6DS3.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*!
* @file Adafruit_LSM6DS3.h
*
* I2C Driver for the Adafruit LSM6DS3 6-DoF Accelerometer and Gyroscope
*library
*
* This is a library for the Adafruit LSM6DS3 breakout:
* https://www.adafruit.com/
*
* Adafruit invests time and resources providing this open source code,
* please support Adafruit and open-source hardware by purchasing products from
* Adafruit!
*
*
* BSD license (see license.txt)
*/
#ifndef _ADAFRUIT_LSM6DS3_H
#define _ADAFRUIT_LSM6DS3_H
#include "Adafruit_LSM6DS.h"
#define LSM6DS3_CHIP_ID 0x69 ///< LSM6DS3 default device id from WHOAMI
#define LSM6DS3_MASTER_CONFIG 0x1A ///< I2C Master config
/*!
* @brief Class that stores state and functions for interacting with
* the LSM6DS3
*/
class Adafruit_LSM6DS3 : public Adafruit_LSM6DS {
public:
Adafruit_LSM6DS3();
~Adafruit_LSM6DS3(){};
void enableI2CMasterPullups(bool enable_pullups);
private:
bool _init(int32_t sensor_id);
};
#endif